Create matrices for 3D transforms.
| static Matrix4d IOLink.TransformMatrix4Factory.RotationEuler |
( |
Vector3d |
angles, |
|
|
string |
convention |
|
) |
| |
|
inlinestatic |
The rotation is described by three Euler angles, chaining rotations, following a given convention.
Create a rotation matrix for a rotation using Euler angles.
The convention is decribed by a three-character-string, where each character describes the axis of rotation for the corresponding angle. A lowercase convention means that we are describing an extrinsic rotation, while an uppercase convention means that we are describing an intrinsic rotation. A mixed case convention is invalid.
Extrinsinc and intrinsinc conventions are the inverse of each other, so for example, intrinsinc convention "ZYX" is equivalent to the extrinsic convention "xyz".
Common conventions:
- "ZYX": Rotation around Z, then Y, then X.
- "ZXZ": Rotation around Z, then X, then Z.
- Parameters
-
| angles | The Euler angles of the rotation. |
| convention | The convention used for the rotation. |
- Returns
- The rotation matrix.
- Exceptions
-
| InvalidArgument | If the convention is invalid. |