The matrix construct allows one to specify a 3
3
real matrix. There are several modes available to
specify rotation matrices. An arbitrary 3
3 matrix can be
specified by using the MATRix construct. Note: all rotations are
counterclockwise.
.
,
,
.
is the rotation around the z axis,
around the new x axis, and
around
the new z axis.
,
,
).
,
,
,
, which are defined as
with the constraint

,
,
.
and
specify the rotation axis.
is the inclination versus the y-axis;
is
the azimuthal angle,
i.e., the angle between the x-axis and the
projection of the axis into the x,z plane; and
is the rotation around the rotation axis.
In the following example, a rotation matrix is specified by
a rotation axis (2,3,4) and a rotation angle (40
) around
the axis (counterclockwise rotation):
AXIS=( 2, 3, 4 ) 40.
In the next example, a matrix is specified by direct input:
MATRix=( 1. 3. 5. )
( 4. 2. 1. )
( 2. 1. 8. )
The last example shows how to specify a rotation matrix by
using the Eulerian angles
,
,
:
EULEr=( 30. 40. 120. )