From 12b49cbc769d5aed482c399705ac1461b619b688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 20 Dec 2018 23:25:42 -0800 Subject: [PATCH] Removing old vector math. --- include/bx/inline/math.inl | 23 ----------------------- include/bx/math.h | 9 --------- 2 files changed, 32 deletions(-) diff --git a/include/bx/inline/math.inl b/include/bx/inline/math.inl index c9454e6..c361a9a 100644 --- a/include/bx/inline/math.inl +++ b/include/bx/inline/math.inl @@ -943,13 +943,6 @@ namespace bx _result[2] = _vec[0] * _mat[ 2] + _vec[1] * _mat[6] + _vec[2] * _mat[10] + _mat[14]; } - inline void vec3MulMtxXyz0(float* _result, const float* _vec, const float* _mat) - { - _result[0] = _vec[0] * _mat[ 0] + _vec[1] * _mat[4] + _vec[2] * _mat[ 8]; - _result[1] = _vec[0] * _mat[ 1] + _vec[1] * _mat[5] + _vec[2] * _mat[ 9]; - _result[2] = _vec[0] * _mat[ 2] + _vec[1] * _mat[6] + _vec[2] * _mat[10]; - } - 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]; @@ -962,22 +955,6 @@ namespace bx _result[2] = zz*invW; } - inline void vec4Mul(float* _result, const float* _a, const float* _b) - { - _result[0] = _a[0] * _b[0]; - _result[1] = _a[1] * _b[1]; - _result[2] = _a[2] * _b[2]; - _result[3] = _a[3] * _b[3]; - } - - inline void vec4Mul(float* _result, const float* _a, float _b) - { - _result[0] = _a[0] * _b; - _result[1] = _a[1] * _b; - _result[2] = _a[2] * _b; - _result[3] = _a[3] * _b; - } - 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 07d5519..b46efdb 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -516,18 +516,9 @@ namespace bx /// void vec3MulMtx(float* _result, const float* _vec, const float* _mat); - /// - void vec3MulMtxXyz0(float* _result, const float* _vec, const float* _mat); - /// void vec3MulMtxH(float* _result, const float* _vec, const float* _mat); - /// - void vec4Mul(float* _result, const float* _a, const float* _b); - - /// - void vec4Mul(float* _result, const float* _a, float _b); - /// void vec4MulMtx(float* _result, const float* _vec, const float* _mat);