From e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Fri, 23 Aug 2019 01:44:38 +0300 Subject: Peds --- src/math/Matrix.h | 1 + src/math/math.cpp | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'src/math') diff --git a/src/math/Matrix.h b/src/math/Matrix.h index bfe85afa..7d8c02ab 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -212,6 +212,7 @@ public: } void SetRotate(float xAngle, float yAngle, float zAngle); void Rotate(float x, float y, float z); + void RotateX(float x); void Reorthogonalise(void); void CopyOnlyMatrix(CMatrix *other){ 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 @@ -40,6 +40,12 @@ CMatrix::Rotate(float x, float y, float z) *this = rot * *this; } +void +CMatrix::RotateX(float x) +{ + Rotate(x, 0.0f, 0.0f); +} + void CMatrix::Reorthogonalise(void) { -- cgit v1.2.3