static Vector2 Min( Vector2 a, Vector2 b )

book_4_sparkGenerated
code_blocksInput

Description

The Vector2.Min method returns a new Vector2 instance where each component is the minimum of the corresponding components of two input vectors. This method is useful for finding the component-wise minimum between two 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 two input vectors' components.

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)