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

◆ CreateRotationZ()

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

Create a new Z-axis rotation matrix.

Creates a fresh matrix representing a rotation around the Z-axis. This is ideal for initialization and clean transformations.

The resulting matrix will be: | cos(θ) -sin(θ) 0 | | sin(θ) cos(θ) 0 | | 0 0 1 |

Parameters
angleRotation angle around Z-axis.
Returns
A new rotation matrix.
Vector3D rotated = rotation * Vector3D(1, 0, 0); // Rotates (1,0,0) to (0,1,0)
static consteval Angle FromDegrees(double degrees)
Creates angle from degrees at compile time.
Definition angle.hpp:204
static constexpr Matrix33 CreateRotationZ(const Angle &angle)
Create a new Z-axis rotation matrix.
Definition mat33.hpp:476
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