The Min
method is a static method of the Vector2Int
struct that returns a new Vector2Int
instance. This instance contains the minimum values of the corresponding components from two given Vector2Int
instances.
The Min
method is a static method of the Vector2Int
struct that returns a new Vector2Int
instance. This instance contains the minimum values of the corresponding components from two given Vector2Int
instances.
Use the Min
method when you need to determine the smallest component values between two Vector2Int
instances. This can be useful in scenarios where you need to find the minimum bounding box or when comparing vector components for constraints.
Vector2Int vectorA = new Vector2Int(3, 5); Vector2Int vectorB = new Vector2Int(4, 2); Vector2Int result = Vector2Int.Min(vectorA, vectorB); // result is (3, 2)