static Vector3Int Cross( Vector3Int& a, Vector3Int& b )

book_4_sparkGenerated
code_blocksInput

Description

The Cross method computes the cross product of two Vector3Int instances. The cross product is a vector that is perpendicular to both input vectors, and it is useful in various mathematical and physical applications, such as calculating normals to surfaces.

Usage

To use the Cross method, pass two Vector3Int references as parameters. The method will return a new Vector3Int that represents the cross product of the two vectors.

Example

Vector3Int vectorA = new Vector3Int(1, 0, 0);
Vector3Int vectorB = new Vector3Int(0, 1, 0);
Vector3Int crossProduct = Vector3Int.Cross(ref vectorA, ref vectorB);
// crossProduct will be (0, 0, 1)