Implement Matrix3x3 missing members and documentation
All checks were successful
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 1m7s

This commit is contained in:
2024-05-12 11:51:10 -04:00
parent f72bb0de9f
commit 3e8f83ddfb
5 changed files with 111 additions and 20 deletions

View File

@@ -124,7 +124,7 @@ namespace J3ML::LinearAlgebra {
return a*(e*i - f*h) + b*(f*g - d*i) + c*(d*h - e*g);
}
Matrix3x3 Matrix3x3::Inverse() const {
Matrix3x3 Matrix3x3::Inverted() const {
// Compute the inverse directly using Cramer's rule
// Warning: This method is numerically very unstable!
float d = Determinant();
@@ -148,7 +148,7 @@ namespace J3ML::LinearAlgebra {
return i;
}
Matrix3x3 Matrix3x3::Transpose() const {
Matrix3x3 Matrix3x3::Transposed() const {
auto m00 = this->elems[0][0];
auto m01 = this->elems[0][1];
auto m02 = this->elems[0][2];