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.