Apply X-axis rotation to the current matrix.
Modifies the current matrix by applying a rotation around the X-axis. This is equivalent to multiplying the current matrix by a rotation matrix.
The X-axis rotation matrix is: | 1 0 0 | | 0 cos(θ) -sin(θ) | | 0 sin(θ) cos(θ) |
- Parameters
-
angleX | Rotation angle around X-axis. |
- Returns
- Reference to this matrix after rotation.
- Note
- This is ideal for continuous transformations like animation as it modifies the existing matrix rather than creating a new one.
static consteval Angle FromDegrees(double degrees)
Creates angle from degrees at compile time.
Definition angle.hpp:204
constexpr Matrix33 & RotateX(const Angle &angleX)
Apply X-axis rotation to the current matrix.
Definition mat33.hpp:275
static consteval Matrix33 Identity()
Create an identity matrix.
Definition mat33.hpp:719
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76