Math module

min

procedure · 3 overloadsSource

The component-wise minimum of two vectors. For scalars use the min of the Basic module.

ExampleOpen in playground ↗
assert(min(xyz(1, 5, 3), xyz(4, 2, 6)) == xyz(1, 2, 3));
min :: (v1: Vector2, v2: Vector2) -> Vector2

The smaller of each pair of components.

Parameters

v1: Vector2
the first vector.
v2: Vector2
the second vector.

Returns

min :: (v1: Vector3, v2: Vector3) -> Vector3

The smaller of each pair of components.

Parameters

v1: Vector3
the first vector.
v2: Vector3
the second vector.

Returns

min :: (v1: Vector4, v2: Vector4) -> Vector4

The smaller of each pair of components.

Parameters

v1: Vector4
the first vector.
v2: Vector4
the second vector.

Returns

See also