Luna::length_squared
f32 length_squared(const Float3 &vec)
Computes the squared length of the vector.
This function performs the following operations:
return vec.x * vec.x + vec.y * vec.y + vec.z * vec.z;
Parameters
-
in vec
The vector.
Return value
Returns the squared length of the vector.