Defined in File quaternion.h
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.
q – [in] The quarternion
img – [out] imaginary part
Returns 0 on success or -1 on failure.