static Vector2Int Min( Vector2Int a, Vector2Int b )

book_4_sparkGenerated
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.

Usage

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.

Example

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