dot

@JvmStatic
fun dot(a: Vector3, b: Vector3): Float

Calculates the dot product (scalar product) of two Vector3 vectors.

The dot product is a scalar value that equals the sum of the products of the corresponding components of the two vectors. Geometrically, the dot product can be used to calculate the cosine of the angle between two vectors and to determine whether two vectors are orthogonal (dot product equals 0).

Return

The result of the dot product of the two vectors.

Parameters

a

The first Vector3 vector.

b

The second Vector3 vector.