diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2019-02-03 10:23:08 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 10:23:08 -0800 |
| commit | d11ee96eaca2033d4b4d1febe14becf107a2d0e7 (patch) | |
| tree | 59f0e92bf501c2231f75d56526fd33e62804386e /Source/Core/Common/MathUtil.h | |
| parent | 3b4486bad3f0e44c3a572bba411879a634ece325 (diff) | |
| parent | 69b617ce766e5b1b8956a29f7a8caeed21f6024d (diff) | |
Merge pull request #7759 from jordan-woyak/matrix-cleanup
Common: Clean up matrix math funcs and remove redundant matrix class from WiimoteEmu
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
| -rw-r--r-- | Source/Core/Common/MathUtil.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index 01a39db5b1..bfbf0a8a77 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -5,8 +5,6 @@ #pragma once #include <algorithm> -#include <array> -#include <cstdlib> #include <vector> #include "Common/CommonTypes.h" @@ -113,38 +111,3 @@ inline int IntLog2(u64 val) return result; #endif } - -// Tiny matrix/vector library. -// Used for things like Free-Look in the gfx backend. - -class Matrix33 -{ -public: - static void LoadIdentity(Matrix33& mtx); - - // set mtx to be a rotation matrix around the x axis - static void RotateX(Matrix33& mtx, float rad); - // set mtx to be a rotation matrix around the y axis - static void RotateY(Matrix33& mtx, float rad); - - // set result = a x b - static void Multiply(const Matrix33& a, const Matrix33& b, Matrix33& result); - static void Multiply(const Matrix33& a, const float vec[3], float result[3]); - - float data[9]; -}; - -class Matrix44 -{ -public: - static void LoadIdentity(Matrix44& mtx); - static void LoadMatrix33(Matrix44& mtx, const Matrix33& m33); - static void Set(Matrix44& mtx, const float mtxArray[16]); - - static void Translate(Matrix44& mtx, const float vec[3]); - static void Shear(Matrix44& mtx, const float a, const float b = 0); - - static void Multiply(const Matrix44& a, const Matrix44& b, Matrix44& result); - - float data[16]; -}; |
