dot

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

Calculates the dot product (scalar product) of two 4D vectors.

The dot product is computed as the sum of the products of their corresponding components: a.x*b.x + a.y*b.y + a.z*b.z + a.w*b.w.

Return

The dot product of the two vectors as a Float.

Parameters

a

The first Vector4.

b

The second Vector4.