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_rotate

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.