From ed10947f3f14b2efc20365bb1831e8494c5d14d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 30 Dec 2014 20:16:49 -0800 Subject: [PATCH] Added invPi and sqrt2 constants. --- include/bx/fpumath.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/bx/fpumath.h b/include/bx/fpumath.h index 1429b59..6af0a30 100644 --- a/include/bx/fpumath.h +++ b/include/bx/fpumath.h @@ -15,7 +15,9 @@ namespace bx { const float pi = 3.14159265358979323846f; + const float invPi = 1.0f/3.14159265358979323846f; const float piHalf = 1.57079632679489661923f; + const float sqrt2 = 1.41421356237309504880f; inline float toRad(float _deg) {