Description
The Vector3.Min
method returns a new Vector3
instance where each component is the minimum value of the corresponding components of two input vectors a
and b
. This method is useful for component-wise comparison and selection of the smallest values from two vectors.
Usage
To use the Vector3.Min
method, pass two Vector3
references as parameters. The method will return a new Vector3
where each component is the minimum of the corresponding components of the input vectors.
Example
Vector3 vectorA = new Vector3(3.0f, 5.0f, 7.0f);
Vector3 vectorB = new Vector3(4.0f, 2.0f, 8.0f);
Vector3 result = Vector3.Min(ref vectorA, ref vectorB);
// result is now (3.0f, 2.0f, 7.0f)