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 函数