Added Matrix4::(Make)ViewMatrix

Former-commit-id: 4a21da456f90c5d0c53c291885b3a214be893b5e
This commit is contained in:
Lynix
2013-06-10 16:41:25 +02:00
parent f3d0618ae6
commit 7f9455b947
2 changed files with 27 additions and 7 deletions

View File

@@ -66,6 +66,7 @@ class NzMatrix4
NzMatrix4& MakeTranslation(const NzVector3<T>& translation);
NzMatrix4& MakeTransform(const NzVector3<T>& translation, const NzQuaternion<T>& rotation);
NzMatrix4& MakeTransform(const NzVector3<T>& translation, const NzQuaternion<T>& rotation, const NzVector3<T>& scale);
NzMatrix4& MakeViewMatrix(const NzVector3<T>& translation, const NzQuaternion<T>& rotation);
NzMatrix4& MakeZero();
NzMatrix4& Set(T r11, T r12, T r13, T r14,
@@ -118,6 +119,7 @@ class NzMatrix4
static NzMatrix4 Translate(const NzVector3<T>& translation);
static NzMatrix4 Transform(const NzVector3<T>& translation, const NzQuaternion<T>& rotation);
static NzMatrix4 Transform(const NzVector3<T>& translation, const NzQuaternion<T>& rotation, const NzVector3<T>& scale);
static NzMatrix4 ViewMatrix(const NzVector3<T>& translation, const NzQuaternion<T>& rotation);
static NzMatrix4 Zero();
private: