Merge pull request #17 from lioncash/matrix

CMatrix4f: Make copy assignment constexpr
This commit is contained in:
Phillip Stephens 2019-09-04 19:32:56 -07:00 committed by GitHub
commit 85035bc178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public:
m[3].mSimd = CVector4f(0.f, 0.f, 0.f, 1.0f).mSimd;
}
CMatrix4f& operator=(const CMatrix4f& other) = default;
constexpr CMatrix4f& operator=(const CMatrix4f& other) = default;
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>() +