static Vector3Int Max( Vector3Int a, Vector3Int b )

book_4_sparkGenerated
code_blocksInput

Description

The Max method in the Vector3Int struct is a static method that returns a new Vector3Int instance. This instance is composed of the maximum values from each corresponding component of two input Vector3Int instances, a and b. This method is useful for determining the component-wise maximum of two vectors.

Usage

To use the Max method, you need to provide two Vector3Int instances as parameters. The method will return a new Vector3Int where each component is the maximum of the corresponding components of the input vectors.

Example

Vector3Int vectorA = new Vector3Int(1, 5, 3);
Vector3Int vectorB = new Vector3Int(4, 2, 6);

Vector3Int maxVector = Vector3Int.Max(vectorA, vectorB);
// maxVector is now (4, 5, 6)