static float Dot( Vector3Int& a, Vector3Int& b )
static float Dot( Vector3Int& a, Vector3& b )
float Dot( Vector3& b )

book_4_sparkGenerated
code_blocksInput

Description

The Dot method calculates the dot product of two Vector3Int instances. The dot product is a scalar value that is the result of the sum of the products of the corresponding components of the two vectors. It is commonly used in graphics and physics calculations to determine the angle between two vectors or to project one vector onto another.

Usage

To use the Dot method, pass two Vector3Int instances by reference as parameters. The method will return a float representing the dot product of the two vectors.

Example

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

float dotProduct = Vector3Int.Dot(ref vectorA, ref vectorB);
// dotProduct will be 32, calculated as (1*4 + 2*5 + 3*6)