Vector3
- Angle
- ClampMagnitude
- Cross
- Distance
- Dot
- forward
- Lerp
- magnitude
- Max
- Min
- MoveTowards
- normalized
- Normalize
- one
- operator !=
- operator *
- operator +
- operator -
- operator /
- operator ==
- OrthoNormalize
- Project
- Reflect
- right
- RotateTowards
- Scale
- Slerp
- SmoothDamp
- sqrMagnitude
- this [int index]
- ToString
- up
- Vector3
- x
- y
- zero
- z
Vector3.Max 最大
static function Max (lhs : Vector3, rhs : Vector3) : Vector3
Description描述
Returns a vector that is made from the largest components of two vectors.
返回一个由两个向量的最大组件组成的向量。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public Vector3 a = new Vector3(1, 2, 3);
public Vector3 b = new Vector3(4, 3, 2);
public void Awake() {
print(Vector3.Max(a, b));
}
}
参见: Min 函数
最后修改:2010年12月20日 Monday 23:01