Create a new X-axis rotation matrix.
Creates a fresh matrix representing a rotation around the X-axis. This is ideal for initialization and clean transformations.
The resulting matrix will be: | 1 0 0 | | 0 cos(θ) -sin(θ) | | 0 sin(θ) cos(θ) |
- Parameters
-
angle | Rotation angle around X-axis. |
- Returns
- A new rotation matrix.
static consteval Angle FromDegrees(double degrees)
Creates angle from degrees at compile time.
Definition angle.hpp:204
static constexpr Matrix33 CreateRotationX(const Angle &angle)
Create a new X-axis rotation matrix.
Definition mat33.hpp:321
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51