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

◆ Invert()

Matrix43 SRL::Math::Types::Matrix43::Invert ( ) const
inlineconstexpr

Inverts the matrix.

For orthogonal matrices (e.g., pure rotation matrices), the inverse is the transpose. This method computes the inverse by transposing the rotation part and negating the translation.

Returns
The inverted matrix.
Note
This method assumes the matrix is orthogonal. For non-orthogonal matrices, this will not produce the correct inverse.
Matrix43 inverse = transform.Invert(); // Computes the inverse of the transformation matrix
static constexpr Matrix43 CreateTranslation(const Vector3D &translation)
Creates translation matrix.
Definition mat43.hpp:346
constexpr Matrix43()
Default constructor initializing to a zero matrix.
Definition mat43.hpp:85
constexpr Matrix43 Invert() const
Inverts the matrix.
Definition mat43.hpp:312
A high-performance three-dimensional vector implementation optimized for Saturn hardware.
Definition vector3d.hpp:51