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

◆ CreateRotationY()

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

Create a new Y-axis rotation matrix.

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

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

Parameters
angleRotation angle around Y-axis.
Returns
A new rotation matrix.
Vector3D rotated = rotation * Vector3D(1, 0, 0); // Rotates (1,0,0) to (0,0,-1)
static consteval Angle FromDegrees(double degrees)
Creates angle from degrees at compile time.
Definition angle.hpp:204
constexpr Matrix33()
Default constructor initializing to a zero matrix.
Definition mat33.hpp:76
static constexpr Matrix33 CreateRotationY(const Angle &angle)
Create a new Y-axis rotation matrix.
Definition mat33.hpp:398
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51