Description
The Min
method of the Vector3Int
struct returns a new Vector3Int
instance where each component is the minimum value of the corresponding components of the two input vectors a
and b
. This method is useful for determining the smallest vector in terms of its individual components.
Usage
To use the Min
method, call it with two Vector3Int
instances as arguments. The method will return a new Vector3Int
where each component is the minimum of the corresponding components of the input vectors.
Example
Vector3Int vectorA = new Vector3Int(3, 5, 7);
Vector3Int vectorB = new Vector3Int(4, 2, 8);
Vector3Int result = Vector3Int.Min(vectorA, vectorB);
// result is now (3, 2, 7)