diff --git a/include/zeus/CMatrix4f.hpp b/include/zeus/CMatrix4f.hpp index 40da5f9..5ac0d4d 100644 --- a/include/zeus/CMatrix4f.hpp +++ b/include/zeus/CMatrix4f.hpp @@ -51,6 +51,8 @@ public: constexpr CMatrix4f& operator=(const CMatrix4f& other) = default; + constexpr bool operator==(const CMatrix4f&) const = default; + [[nodiscard]] CVector4f operator*(const CVector4f& other) const { return m[0].mSimd * other.mSimd.shuffle<0, 0, 0, 0>() + m[1].mSimd * other.mSimd.shuffle<1, 1, 1, 1>() + m[2].mSimd * other.mSimd.shuffle<2, 2, 2, 2>() + m[3].mSimd * other.mSimd.shuffle<3, 3, 3, 3>(); diff --git a/src/CMatrix3f.cpp b/src/CMatrix3f.cpp index 7dcd16c..823cd30 100644 --- a/src/CMatrix3f.cpp +++ b/src/CMatrix3f.cpp @@ -4,8 +4,7 @@ namespace zeus { -CMatrix3f::CMatrix3f(const CQuaternion& quat) { - CQuaternion nq = quat.normalized(); +CMatrix3f::CMatrix3f(const CQuaternion& nq) { float x2 = nq.x() * nq.x(); float y2 = nq.y() * nq.y(); float z2 = nq.z() * nq.z();