Implement Matrix3x3::InverseTranpose() InverseTransposed() Inverse() InverseFast()

This commit is contained in:
2024-05-24 12:02:09 -04:00
parent 3333dfee51
commit e0464b7f4f
2 changed files with 57 additions and 1 deletions

View File

@@ -341,8 +341,13 @@ namespace J3ML::LinearAlgebra {
Matrix3x3 Transposed() const;
/// Returns the inverse transpose of this matrix.
/// Use the matrix to transform covariant vectors (normal vectors).
Matrix3x3 InverseTransposed() const;
/// Computes the inverse transpose of this matrix.
/// Use the matrix to transform covariant vectors (normal vectors).
bool InverseTranspose();
/// Inverts this matrix using numerically stable Gaussian elimination.
/// @return Returns true on success, false otherwise;
bool Inverse(float epsilon = 1e-6f);
@@ -382,7 +387,7 @@ namespace J3ML::LinearAlgebra {
void Transpose();
bool InverseTranspose();
void RemoveScale();