Function rc_quaternion_norm#
Defined in File quaternion.h
Function Documentation#
-
double rc_quaternion_norm(rc_vector_t q)#
Returns the length of a quaternion vector by finding its 2-norm.
- Parameters:
q – [in] The quarternion in form of a vector of length 4
- Returns:
Returns the norm, or prints an error message and returns -1.0f on error.