Skip to content

格式

typescript
Vector2.Min(lhs, rhs)

所属类: Vector2

描述

计算两个 Vector2 对象各自分量的最小值。

参数

参数名类型描述
lhsVector2向量lhs。
rhsVector2向量rhs。

返回值

类型描述
Vector2lhs 和 rhs 对应分量最小值构成的新向量

代码示例

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