Common: add transpose function to Matrix class

This commit is contained in:
iwubcode 2025-09-17 01:23:23 -05:00
commit 9a37c8081d
2 changed files with 47 additions and 6 deletions

View file

@ -391,8 +391,9 @@ public:
static void Multiply(const Matrix33& a, const Matrix33& b, Matrix33* result);
static void Multiply(const Matrix33& a, const Vec3& vec, Vec3* result);
Matrix33 Inverted() const;
float Determinant() const;
Matrix33 Inverted() const;
Matrix33 Transposed() const;
Matrix33& operator*=(const Matrix33& rhs)
{
@ -435,6 +436,7 @@ public:
float Determinant() const;
Matrix44 Inverted() const;
Matrix44 Transposed() const;
Matrix44& operator*=(const Matrix44& rhs)
{