From a6e6b915e63162347b7a8848d27d47d72a6017a3 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 12 Feb 2020 19:54:52 +0100 Subject: [PATCH] Math/Math: Remove getTranslate(), getUpVector() and getForwardVector() as they are not used. --- include/Spectre/Math/Math.h | 7 ------- source/Math/Math.cpp | 16 ---------------- 2 files changed, 23 deletions(-) diff --git a/include/Spectre/Math/Math.h b/include/Spectre/Math/Math.h index d8aebe4..34f725c 100644 --- a/include/Spectre/Math/Math.h +++ b/include/Spectre/Math/Math.h @@ -41,13 +41,6 @@ namespace sp { namespace math // Create a 2D scale matrix. Matrix4f scale(float x, float y); - // Get translation part of a matrix. - Vector3f getTranslate(const Matrix4f matrix); - - Vector3f getUpVector(const Matrix4f matrix); - - Vector3f getForwardVector(const Matrix4f matrix); - } } // namespace sp #endif /* SPECTRE_MATH_MATH_H */ diff --git a/source/Math/Math.cpp b/source/Math/Math.cpp index 120b7bc..2be138a 100644 --- a/source/Math/Math.cpp +++ b/source/Math/Math.cpp @@ -79,20 +79,4 @@ namespace sp { namespace math 0.0f, 0.0f, 0.0f, 1.0f); } - Vector3f getTranslate(const Matrix4f matrix) { - - return Vector3f(matrix.e[12], matrix.e[13], matrix.e[14]); - } - - - Vector3f getUpVector(const Matrix4f matrix) { - - return Vector3f(matrix.e[4], matrix.e[5], matrix.e[6]); - } - - Vector3f getForwardVector(const Matrix4f matrix) { - - return Vector3f(matrix.e[8], matrix.e[9], matrix.e[10]); - } - } } // namespace sp::math