Rotation angles to transformation matrix
M = CL_rot_angles2matrix(naxes,angles)
Computes the transformation matrix M that results from the combination of successive elementary rotations, each elementary rotation being described by an axis number (1=x-axis, 2=y-axis, 3=z-axis) and an angle.
Notes:
- M is the frame transformation matrix and its definition is consistent with conventions on reference frame transformations.
- Let u be the coordinates of some vector in some reference frame. The coordinates of the rotated vector are given by:
R(u) = M' * u (M transposed)
- Conversely, let F1 be some reference frame, F2 be the reference frame obtained after applying the successive rotations to F1, u1 the coordinates relative to F1 of some vector, then the coordinates relative to F2 of the same vector are given by:
u2 = M * u1
Axis numbers: 1=x-axis, 2=y-axis or 3=z-axis (1xP or Px1)
Rotation angles around respective axes [rad] (PxN)
Transformation matrix (3x3xN).
CNES - DCT/SB