Vector2.Min 最小

static function Min (lhs : Vector2, rhs : Vector2) : Vector2

Description描述

Returns a vector that is made from the smallest components of two vectors.

返回一个由两个向量的最小组件组成的向量。

参见:Max 函数.

var a : Vector2 = Vector2 (1, 3);
var b : Vector2 = Vector2 (4, 2);
print (Vector2.Min(a,b)); // prints (1.0,2.0)
最后修改:2011年1月4日 Tuesday 21:54

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。