Vector3.Min 最小


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

Description描述

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

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

  • C#

  • JavaScript

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.Min(a, b));}}
var a : Vector3 = Vector3(1, 2, 3);var b : Vector3 = Vector3(4, 3, 2);print (Vector3.Min(a,b)); // prints (1.0,2.0,2.0)

参见: Max 函数


,