Removed Matrix4 "identity optimization"

Returned Matrix4 to a POD type


Former-commit-id: 658f7d41b5d5f7d70b9d6531456ae2e498c469d2
This commit is contained in:
Lynix
2014-04-20 14:29:55 +02:00
parent c9b7010380
commit 1ba07cf69c
2 changed files with 8 additions and 81 deletions

View File

@@ -122,12 +122,10 @@ class NzMatrix4
static NzMatrix4 ViewMatrix(const NzVector3<T>& translation, const NzQuaternion<T>& rotation);
static NzMatrix4 Zero();
private:
T m11, m12, m13, m14,
m21, m22, m23, m24,
m31, m32, m33, m34,
m41, m42, m43, m44;
mutable bool m_isIdentity;
T m11, m12, m13, m14,
m21, m22, m23, m24,
m31, m32, m33, m34,
m41, m42, m43, m44;
};
template<typename T> std::ostream& operator<<(std::ostream& out, const NzMatrix4<T>& matrix);