Difference between revisions of "Euler2dcm.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Update function See also links and function index membership) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:euler2dcm.m}} __NOTOC__ | {{DISPLAYTITLE:euler2dcm.m}} __NOTOC__ | ||
| − | |||
Converts Euler angles (ZYZ active convention) into a direction cosine matrix. | Converts Euler angles (ZYZ active convention) into a direction cosine matrix. | ||
==Syntax== | ==Syntax== | ||
| − | R=euler2dcm( | + | R=euler2dcm(alpha,beta,gamma) |
| + | |||
| + | OR | ||
| + | |||
| + | R=euler2dcm([alpha beta gamma]) | ||
| − | == | + | ==Parameters== |
| − | alpha,beta,gamma - Euler angles in radians (ZYZ | + | alpha,beta,gamma - Euler angles in radians (ZYZ |
active convention) | active convention) | ||
==Outputs== | ==Outputs== | ||
| − | R - direction cosine matrix | + | R - direction cosine matrix |
==Notes== | ==Notes== | ||
| − | |||
The resulting rotation matrix is to be used as follows: | The resulting rotation matrix is to be used as follows: | ||
| Line 26: | Line 28: | ||
==See also== | ==See also== | ||
| − | + | [[wigner.m]], [[dcm2wigner.m]], [[dcm2euler.m]], [[anax2dcm.m]], [[anax2quat.m]], [[axis_tsymm.m]], [[euler_sup.m]], [[quat2anax.m]], [[rotmat_align.m]], [[rotor_stack.m]], [[xyz2sph.m]], [[Kernel_utilities]] | |
| − | [[wigner.m]], [[dcm2wigner.m]], [[dcm2euler.m]], [[anax2dcm.m]], [[ | ||
| − | |||
''Version 2.3, authors: [[Ilya Kuprov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 18:36, 6 June 2026
Converts Euler angles (ZYZ active convention) into a direction cosine matrix.
Syntax
R=euler2dcm(alpha,beta,gamma)
OR
R=euler2dcm([alpha beta gamma])
Parameters
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, anax2quat.m, axis_tsymm.m, euler_sup.m, quat2anax.m, rotmat_align.m, rotor_stack.m, xyz2sph.m, Kernel_utilities
Version 2.3, authors: Ilya Kuprov