SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ CreateRotationX()

static constexpr Matrix33 SRL::Math::Types::Matrix33::CreateRotationX ( const Angle & angle)
inlinestaticconstexprinherited

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
angleRotation angle around X-axis.
Returns
A new rotation matrix.
Vector3D rotated = rotation * Vector3D(0, 1, 0); // Rotates (0,1,0) to (0,0,1)
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