From Spinach Documentation Wiki
Jump to: navigation, search

Converts a quaternion into angle-axis rotation parameters. Syntax:


where q is a structure with four fields q.u, q.i, q.j, q.k giving the four components of the quaternion. Output:

   rot_axis - cartesian direction vector given as a row or column 
              with three real elements
  rot_angle - rotation angle in radians