static Vector3 Min( Vector3& a, Vector3& b )

book_4_sparkGenerated
code_blocksInput

Description

The Vector3.Min method is a static method that returns a new Vector3 instance containing the minimum values for each component (x, y, z) from two given vectors. This method is useful for determining the smallest vector in terms of its components from two vectors.

Usage

To use the Vector3.Min method, you need to pass two Vector3 references as parameters. The method will compare each component of the vectors and return a new Vector3 with the smallest values for each component.

Example

Vector3 vectorA = new Vector3(3.0f, 5.0f, 7.0f);
Vector3 vectorB = new Vector3(4.0f, 2.0f, 8.0f);

Vector3 minVector = Vector3.Min(ref vectorA, ref vectorB);
// minVector will be (3.0f, 2.0f, 7.0f)