T = TransformationMatrices.axesRotations(sequence, angles);
This function returns transformation matrix T that describes the orientation defined by three elementary rotations in a given sequence, each rotated by angles.
function axesRotations extends Modelica.Icons.Function; input Integer sequence[3](min = {1, 1, 1}, max = {3, 3, 3}) = {1, 2, 3} "Sequence of rotations from frame 1 to frame 2 along axis sequence[i]"; input SI.Angle angles[3] = {0, 0, 0} "Rotation angles around the axes defined in 'sequence'"; output TransformationMatrices.Orientation T "Orientation object to rotate frame 1 into frame 2"; end axesRotations;