The Min
method is a static member of the Vector2Int
struct. It returns a new Vector2Int
instance where each component is the minimum value of the corresponding components of the two input vectors a
and b
.
The Min
method is a static member of the Vector2Int
struct. It returns a new Vector2Int
instance where each component is the minimum value of the corresponding components of the two input vectors a
and b
.
Use this method when you need to determine the component-wise minimum of two Vector2Int
instances. This can be useful in scenarios where you need to find the smallest bounding box or limit values within a certain range.
Vector2Int vectorA = new Vector2Int(3, 5); Vector2Int vectorB = new Vector2Int(4, 2); Vector2Int result = Vector2Int.Min(vectorA, vectorB); // result is (3, 2)