Function rc_quaternion_rotate#
Defined in File quaternion.h
Function Documentation#
-
int rc_quaternion_rotate(rc_vector_t *p, rc_vector_t q)#
Rotates the quaternion p by quaternion q with the operation pā=qpq*.
p is modified in place, q is unmodified.
- Parameters:
p ā quaternion to be rotated
q ā [in] rotation quarternion
- Returns:
Returns 0 on success or -1 on failure.