summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2019-10-01 19:15:16 +0200
committerGitHub <noreply@github.com>2019-10-01 19:15:16 +0200
commite363a7983eb5f8538b46245d60cb9dfc46dd54d3 (patch)
tree2881133cbf865299e7a325536aa2e30acf8ac0a6 /src/math
parentMerge pull request #215 from Sergeanur/FixCPickup (diff)
parentMoar peds (diff)
downloadre3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.tar
re3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.tar.gz
re3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.tar.bz2
re3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.tar.lz
re3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.tar.xz
re3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.tar.zst
re3-e363a7983eb5f8538b46245d60cb9dfc46dd54d3.zip
Diffstat (limited to 'src/math')
-rw-r--r--src/math/Matrix.h1
-rw-r--r--src/math/math.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h
index 7d8c02ab..5a3473ad 100644
--- a/src/math/Matrix.h
+++ b/src/math/Matrix.h
@@ -213,6 +213,7 @@ public:
void SetRotate(float xAngle, float yAngle, float zAngle);
void Rotate(float x, float y, float z);
void RotateX(float x);
+ void RotateZ(float z);
void Reorthogonalise(void);
void CopyOnlyMatrix(CMatrix *other){
diff --git a/src/math/math.cpp b/src/math/math.cpp
index 66260709..0707e3d2 100644
--- a/src/math/math.cpp
+++ b/src/math/math.cpp
@@ -47,6 +47,12 @@ CMatrix::RotateX(float x)
}
void
+CMatrix::RotateZ(float z)
+{
+ Rotate(0.0f, 0.0f, z);
+}
+
+void
CMatrix::Reorthogonalise(void)
{
CVector &r = GetRight();