Skip to content

format

typescript
Vector4.Min(lhs, rhs)

class: Vector4

description

Calculates the minimum value of each component of two Vector4 objects.

parameter

param_nametypedescription
lhsVector4The vector lhs.
rhsVector4The vector rhs.

return

typedescription
Vector4A new vector formed by the minimum values of the corresponding components of lhs and rhs.

code example

typescript
let lhs = new Vector4(1, 2, 3, 4);
let rhs = new Vector4(3, 4, 5, 6);
let min = Vector4.Min(lhs, rhs);