Function rc_quaternion_conjugate_inplace#
Defined in File quaternion.h
Function Documentation#
-
int rc_quaternion_conjugate_inplace(rc_vector_t *q)#
Calculates conjugate of quaternion q and overwrites the old q.
Populates quaternion vector q with its conjugate where the 3 imaginary parts ijk are multiplied by -1.
- Parameters:
q – [in] The quarternion
- Returns:
Returns 0 on success or -1 on failure.