summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-31 17:45:26 +0200
committeraap <aap@papnet.eu>2020-05-31 17:45:26 +0200
commitbae3a3e72f6b22b72155d377d38725cdbdff688c (patch)
tree09d9b2e732771ec71c9fe920a759930d50490eea /src/math
parentfix (diff)
downloadre3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.gz
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.bz2
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.lz
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.xz
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.zst
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.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 b7e055c5..5ec79aba 100644
--- a/src/math/Matrix.h
+++ b/src/math/Matrix.h
@@ -223,6 +223,7 @@ public:
void SetRotate(float xAngle, float yAngle, float zAngle);
void Rotate(float x, float y, float z);
void RotateX(float x);
+ void RotateY(float y);
void RotateZ(float z);
void Reorthogonalise(void);
diff --git a/src/math/math.cpp b/src/math/math.cpp
index eeb9d3fa..29f18d03 100644
--- a/src/math/math.cpp
+++ b/src/math/math.cpp
@@ -60,6 +60,12 @@ CMatrix::RotateX(float x)
}
void
+CMatrix::RotateY(float y)
+{
+ Rotate(0.0f, y, 0.0f);
+}
+
+void
CMatrix::RotateZ(float z)
{
Rotate(0.0f, 0.0f, z);