Difference between revisions of "Quat2anax.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
(→‎Outputs)
Line 16: Line 16:
 
     rot_axis  - cartesian direction vector as a row  
 
     rot_axis  - cartesian direction vector as a row  
 
                 with three real elements
 
                 with three real elements
−
 
+
 
     rot_angle - rotation angle in radians
 
     rot_angle - rotation angle in radians
  

Revision as of 14:38, 26 December 2018

Converts a quaternion into angle-axis rotation parameters.

Syntax

    [rot_axis,rot_angle]=quat2anax(q)

Arguments

    q   -   quaternion, a structure with four fields
            q.u, q.i, q.j, q.k giving the four compo-
            nents of the quaternion

Outputs

    rot_axis  - cartesian direction vector as a row 
                with three real elements

    rot_angle - rotation angle in radians

Notes

See the notes on rotation conventions for the basic definitions of rotations in Spinach.

See also

euler2dcm.m, wigner.m, quat2dcm.m, dcm2quat.m, anax2quat.m


Version 2.3, authors: Ilya Kuprov