Function rc_quaternion_imaginary_part#
Defined in File quaternion.h
Function Documentation#
-
int rc_quaternion_imaginary_part(rc_vector_t q, rc_vector_t *img)#
Populates vector i with the imaginary components ijk of of quaternion vector q.
If img is already of length 3 then its original contents are overwritten. Otherwise the original allocated memory is freed and new memory is allocated.
- Parameters:
q – [in] The quarternion
img – [out] imaginary part
- Returns:
Returns 0 on success or -1 on failure.