Skip to content

format

typescript
Vector2.Min(lhs, rhs)

class: Vector2

description

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

parameter

param_nametypedescription
lhsVector2The vector lhs.
rhsVector2The vector rhs.

return

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

code example

typescript
let lhs = new Vector2(1, 8);
let rhs = new Vector2(3, 4);
let min = Vector2.Min(lhs, rhs);