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

robot_2Generated
code_blocksInput

Description

The Vector3.Min method is a static method that returns a new Vector3 instance. This instance contains the minimum values for each component (x, y, z) from two given Vector3 instances. It effectively compares the x, y, and z components of the two vectors and returns a new vector where each component is the minimum of the corresponding components of the input vectors.

Usage

To use the Vector3.Min method, you need to pass two Vector3 instances by reference. The method will return a new Vector3 instance with the minimum 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 result = Vector3.Min(ref vectorA, ref vectorB);
// result is now (3.0f, 2.0f, 7.0f)