static Vector2Int Min( Vector2Int a, Vector2Int b )

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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.

Example

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