Difference between revisions of "Anax2dcm.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Normalise preformatted blank lines in function documentation blocks)
m (Rename Arguments section heading to Parameters)
Line 7: Line 7:
 
dcm=anax2dcm(rot_axis,rot_angle)
 
dcm=anax2dcm(rot_axis,rot_angle)
  
−
==Arguments==
+
==Parameters==
  
 
rot_axis - cartesian direction vector given as
 
rot_axis - cartesian direction vector given as

Revision as of 18:47, 5 June 2026


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

Syntax

dcm=anax2dcm(rot_axis,rot_angle)

Parameters

rot_axis - cartesian direction vector given as

                a row or column with three real ele-
                ments

    rot_angle - rotation angle in radians

Outputs

dcm - 3x3 directional cosine matrix

Notes

Both angle-axis and DCM convention are numerically stable. This conversion has no singularities. See the notes on rotation conventions for the basic definitions of rotations in Spinach.

See also

euler2dcm.m, dcm2euler.m, wigner.m, dcm2wigner.m

Version 2.3, authors: Ilya Kuprov