Difference between revisions of "Euler2dcm.m"
(Restore pre-bulk-edit wiki content) |
(Normalise sequential blank lines) |
||
| Line 29: | Line 29: | ||
==See also== | ==See also== | ||
[[wigner.m]], [[dcm2wigner.m]], [[dcm2euler.m]], [[anax2dcm.m]], [[dcm2quat.m]], [[quat2dcm.m]] | [[wigner.m]], [[dcm2wigner.m]], [[dcm2euler.m]], [[anax2dcm.m]], [[dcm2quat.m]], [[quat2dcm.m]] | ||
| − | |||
''Version 2.3, authors: [[Ilya Kuprov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]]'' | ||
Revision as of 11:25, 25 April 2026
Converts Euler angles (ZYZ active convention) into a direction cosine matrix.
Syntax
R=euler2dcm(alpha,beta,gamma)
OR
R=euler2dcm([alpha beta gamma])
Arguments
alpha,beta,gamma - Euler angles in radians (ZYZ
active convention)
Outputs
R - direction cosine matrix
Notes
The resulting rotation matrix is to be used as follows:
v=R*v (for 3x1 vectors)
A=R*A*R' (for 3x3 interaction tensors)
See the notes on rotation conventions for the basic definitions of rotations in Spinach.
See also
wigner.m, dcm2wigner.m, dcm2euler.m, anax2dcm.m, dcm2quat.m, quat2dcm.m
Version 2.3, authors: Ilya Kuprov