This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_quaternion_imaginary_part

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.