Luna::dot
f32 dot(const Float4 &v1, const Float4 &v2)
Computes the dot product of two vectors.
This function performs the following operations:
return v1.x * v2.x + v1.y * v2.y + v1.z * v2.z + v1.w * v2.w;
Parameters
-
in v1
The first vector.
-
in v2
The second vector.
Return value
Returns the dot product of two vectors.