summaryrefslogtreecommitdiffstats
path: root/src/math/math.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-08-23 00:56:22 +0200
committerGitHub <noreply@github.com>2019-08-23 00:56:22 +0200
commita8bb3412dcac61fed6e49f897be8c412476695ee (patch)
tree8ea09fb5f072f26005983e435e46ac70b4ecdb37 /src/math/math.cpp
parentMerge pull request #195 from erorcun/erorcun (diff)
parentPeds (diff)
downloadre3-a8bb3412dcac61fed6e49f897be8c412476695ee.tar
re3-a8bb3412dcac61fed6e49f897be8c412476695ee.tar.gz
re3-a8bb3412dcac61fed6e49f897be8c412476695ee.tar.bz2
re3-a8bb3412dcac61fed6e49f897be8c412476695ee.tar.lz
re3-a8bb3412dcac61fed6e49f897be8c412476695ee.tar.xz
re3-a8bb3412dcac61fed6e49f897be8c412476695ee.tar.zst
re3-a8bb3412dcac61fed6e49f897be8c412476695ee.zip
Diffstat (limited to 'src/math/math.cpp')
-rw-r--r--src/math/math.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/math.cpp b/src/math/math.cpp
index e8b7d933..66260709 100644
--- a/src/math/math.cpp
+++ b/src/math/math.cpp
@@ -41,6 +41,12 @@ CMatrix::Rotate(float x, float y, float z)
}
void
+CMatrix::RotateX(float x)
+{
+ Rotate(x, 0.0f, 0.0f);
+}
+
+void
CMatrix::Reorthogonalise(void)
{
CVector &r = GetRight();