Difference between revisions of "Anax2dcm.m"
(Sync syntax/arguments/outputs with current Spinach source) |
|||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:anax2dcm.m}} __NOTOC__ | {{DISPLAYTITLE:anax2dcm.m}} __NOTOC__ | ||
| + | |||
Converts angle-axis rotation parameters into a directional cosine matrix. | Converts angle-axis rotation parameters into a directional cosine matrix. | ||
==Syntax== | ==Syntax== | ||
| − | + | dcm=anax2dcm(rot_axis,rot_angle) | |
==Arguments== | ==Arguments== | ||
| − | + | rot_axis - cartesian direction vector given as | |
| − | row or column with three real | + | a row or column with three real ele- |
| − | + | ments | |
| + | |||
rot_angle - rotation angle in radians | rot_angle - rotation angle in radians | ||
==Outputs== | ==Outputs== | ||
| − | + | dcm - 3x3 directional cosine matrix | |
==Notes== | ==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''. | 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== | ==See also== | ||
| + | |||
[[euler2dcm.m]], [[dcm2euler.m]], [[euler2wigner.m]], [[dcm2wigner.m]] | [[euler2dcm.m]], [[dcm2euler.m]], [[euler2wigner.m]], [[dcm2wigner.m]] | ||
''Version 2.3, authors: [[Ilya Kuprov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]]'' | ||
Revision as of 15:01, 5 April 2026
Converts angle-axis rotation parameters into a directional cosine matrix.
Syntax
dcm=anax2dcm(rot_axis,rot_angle)
Arguments
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, euler2wigner.m, dcm2wigner.m
Version 2.3, authors: Ilya Kuprov