static Vector2Int Min( Vector2Int a, Vector2Int b )

robot_2Generated
code_blocksInput

Description

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, a and b.

Usage

Use this method when you need to determine the minimum value for each component 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.

Example

Vector2Int vectorA = new Vector2Int(3, 5);
Vector2Int vectorB = new Vector2Int(4, 2);
Vector2Int result = Vector2Int.Min(vectorA, vectorB);
// result is (3, 2)