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

◆ Matrix33() [3/3]

SRL::Math::Types::Matrix33::Matrix33 ( const Vector3D & row0In,
const Vector3D & row1In,
const Vector3D & row2In )
inlineconstexpr

Creates matrix from individual row vectors.

This constructor initializes a 3x3 matrix using individual row vectors. Each row vector defines a direction in world space, allowing for flexible matrix creation.

Parameters
row0InThe right vector (XAxis).
row1InThe up vector (YAxis).
row2InThe forward vector (ZAxis).
Note
For proper rotation matrices, ensure the row vectors are orthonormal.
Matrix33 matrix = Matrix33(
Vector3D(1, 0, 0), // Right vector
Vector3D(0, 1, 0), // Up vector
Vector3D(0, 0, 1) // Forward vector
);
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