Create a rotation matrix from Euler angles.
Creates a fresh matrix representing a combined rotation around all three axes. The rotations are applied in the order: Z, then Y, then X (intrinsic rotations).
The resulting matrix is a combination of three rotations: M = Rx * Ry * Rz, where:
- Rx is rotation around X-axis
- Ry is rotation around Y-axis
- Rz is rotation around Z-axis
- Parameters
-
angleX | Rotation angle around X-axis (pitch). |
angleY | Rotation angle around Y-axis (yaw). |
angleZ | Rotation angle around Z-axis (roll). |
- Returns
- A new rotation matrix.
- Note
- The order of rotations matters. Changing the order will result in a different final orientation.
);
static consteval Angle FromDegrees(double degrees)
Creates angle from degrees at compile time.
Definition angle.hpp:204
static constexpr Matrix33 CreateRotation(const Angle &angleX, const Angle &angleY, const Angle &angleZ)
Create a rotation matrix from Euler angles.
Definition mat33.hpp:517
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76