From 3e74196a673ea46ba82df4b0556dffede1e796b5 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 27 Mar 2016 06:12:51 +0200 Subject: [PATCH] Cleanup. --- include/bx/fpumath.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/bx/fpumath.h b/include/bx/fpumath.h index e1d82a9..726ea9b 100644 --- a/include/bx/fpumath.h +++ b/include/bx/fpumath.h @@ -14,10 +14,10 @@ namespace bx { - static const float pi = 3.14159265358979323846f; - static const float invPi = 1.0f/3.14159265358979323846f; - static const float piHalf = 1.57079632679489661923f; - static const float sqrt2 = 1.41421356237309504880f; + static const float pi = 3.14159265358979323846f; + static const float invPi = 1.0f/3.14159265358979323846f; + static const float piHalf = 1.57079632679489661923f; + static const float sqrt2 = 1.41421356237309504880f; struct Handness { @@ -737,7 +737,7 @@ namespace bx mtxProj_impl(_result, _fovy, _aspect, _near, _far, _oglNdc); } - template + template inline void mtxProjInfXYWH(float* _result, float _x, float _y, float _width, float _height, float _near, bool _oglNdc = false) { float aa; @@ -763,7 +763,7 @@ namespace bx _result[14] = -bb; } - template + template inline void mtxProjInf_impl(float* _result, float _ut, float _dt, float _lt, float _rt, float _near, bool _oglNdc = false) { const float invDiffRl = 1.0f/(_rt - _lt); @@ -775,13 +775,13 @@ namespace bx mtxProjInfXYWH(_result, xx, yy, width, height, _near, _oglNdc); } - template + template inline void mtxProjInf_impl(float* _result, const float _fov[4], float _near, bool _oglNdc = false) { mtxProjInf_impl(_result, _fov[0], _fov[1], _fov[2], _fov[3], _near, _oglNdc); } - template + template inline void mtxProjInf_impl(float* _result, float _fovy, float _aspect, float _near, bool _oglNdc = false) { const float height = 1.0f/tanf(toRad(_fovy)*0.5f);