From cd0fc36c3c14b453852669acfae29c86bef02797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 3 Jan 2019 15:24:17 -0800 Subject: [PATCH] Removing old math. --- include/bx/inline/math.inl | 19 ------------------- include/bx/math.h | 6 ------ 2 files changed, 25 deletions(-) diff --git a/include/bx/inline/math.inl b/include/bx/inline/math.inl index f7ec88e..2bc4016 100644 --- a/include/bx/inline/math.inl +++ b/include/bx/inline/math.inl @@ -939,25 +939,6 @@ namespace bx return result; } - inline void vec3MulMtx(float* _result, const float* _vec, const float* _mat) - { - _result[0] = _vec[0] * _mat[ 0] + _vec[1] * _mat[4] + _vec[2] * _mat[ 8] + _mat[12]; - _result[1] = _vec[0] * _mat[ 1] + _vec[1] * _mat[5] + _vec[2] * _mat[ 9] + _mat[13]; - _result[2] = _vec[0] * _mat[ 2] + _vec[1] * _mat[6] + _vec[2] * _mat[10] + _mat[14]; - } - - inline void vec3MulMtxH(float* _result, const float* _vec, const float* _mat) - { - float xx = _vec[0] * _mat[ 0] + _vec[1] * _mat[4] + _vec[2] * _mat[ 8] + _mat[12]; - float yy = _vec[0] * _mat[ 1] + _vec[1] * _mat[5] + _vec[2] * _mat[ 9] + _mat[13]; - float zz = _vec[0] * _mat[ 2] + _vec[1] * _mat[6] + _vec[2] * _mat[10] + _mat[14]; - float ww = _vec[0] * _mat[ 3] + _vec[1] * _mat[7] + _vec[2] * _mat[11] + _mat[15]; - float invW = sign(ww)/ww; - _result[0] = xx*invW; - _result[1] = yy*invW; - _result[2] = zz*invW; - } - inline void vec4MulMtx(float* _result, const float* _vec, const float* _mat) { _result[0] = _vec[0] * _mat[ 0] + _vec[1] * _mat[4] + _vec[2] * _mat[ 8] + _vec[3] * _mat[12]; diff --git a/include/bx/math.h b/include/bx/math.h index d910710..d04d841 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -527,12 +527,6 @@ namespace bx /// Vec3 mulH(const Vec3& _vec, const float* _mat); - /// - void vec3MulMtx(float* _result, const float* _vec, const float* _mat); - - /// - void vec3MulMtxH(float* _result, const float* _vec, const float* _mat); - /// void vec4MulMtx(float* _result, const float* _vec, const float* _mat);