Difference between revisions of "Anax2dcm.m"

From Spinach Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
−
Converts angle-axis rotation parameters to directional cosine matrix. Angle should be in radians, axis is normalized by the function. Syntax:
+
{{DISPLAYTITLE:anax2dcm.m}} __NOTOC__
 +
Converts angle-axis rotation parameters into a directional cosine matrix.
  
−
            dcm=anax2dcm(rot_axis,rot_angle)
+
==Syntax==
  
−
Arguments:
+
    q=anax2dcm(rot_axis,rot_angle)
  
−
      rot_axis - cartesian direction vector given as a row or column
+
==Arguments==
−
                with three real elements
 
  
 +
    rot_axis -  cartesian direction vector given as a
 +
                row or column with three real elements
 +
 
     rot_angle - rotation angle in radians
 
     rot_angle - rotation angle in radians
 +
 +
==Outputs==
 +
 +
    dcm      - 3x3 directional cosine matrix
 +
 +
==Notes==
 +
Both angle-axis and quaternion convention are numerically stable. This conversion has no singularities.
 +
 +
==See also==
 +
[[euler2dcm.m]], [[dcm2euler.m]], [[euler2wigner.m]], [[dcm2wigner.m]]
 +
 +
 +
''Version 2.3, authors: [[Ilya Kuprov]]''

Revision as of 13:11, 13 December 2018

Converts angle-axis rotation parameters into a directional cosine matrix.

Syntax

    q=anax2dcm(rot_axis,rot_angle)

Arguments

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

    rot_angle - rotation angle in radians

Outputs

    dcm       - 3x3 directional cosine matrix

Notes

Both angle-axis and quaternion convention are numerically stable. This conversion has no singularities.

See also

euler2dcm.m, dcm2euler.m, euler2wigner.m, dcm2wigner.m


Version 2.3, authors: Ilya Kuprov