static Vector2 Min( Vector2 a, Vector2 b )

robot_2Generated
code_blocksInput

Description

The Vector2.Min method returns a new Vector2 instance where each component is the minimum value of the corresponding components of the two input vectors a and b. This method is useful for determining the smallest vector in terms of its components from two given vectors.

Usage

To use the Vector2.Min method, provide two Vector2 instances as parameters. The method will return a new Vector2 where each component is the minimum of the corresponding components of the input vectors.

Example

Vector2 vectorA = new Vector2(3.0f, 5.0f);
Vector2 vectorB = new Vector2(4.0f, 2.0f);
Vector2 result = Vector2.Min(vectorA, vectorB);
// result is (3.0f, 2.0f)