aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar gingerBill 2018-01-27 09:35:42 +0000
committerGravatar gingerBill 2018-01-27 09:35:42 +0000
commitcf7d2e06ee3f33b9645b87462684a141b03ea02e (patch)
tree3a56dbad7b9267196a348bbaf9324e077d4b0b9e
parentv0.32 Minor fixes (diff)
Fix gb_math.h constants
-rw-r--r--gb_math.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gb_math.h b/gb_math.h
index 9e6790f..f8d228a 100644
--- a/gb_math.h
+++ b/gb_math.h
@@ -3,6 +3,7 @@
use '#define GB_MATH_IMPLEMENTATION' before including to create the implementation in _ONE_ file
Version History:
+ 0.07f - Fix constants
0.07e - Fixed a warning
0.07d - Fix mat4_inverse
0.07c - Add gb_random01
@@ -168,14 +169,14 @@ typedef short gbHalf;
#define GB_MATH_TAU 6.28318530717958647692528676655900576f
#define GB_MATH_PI 3.14159265358979323846264338327950288f
- #define GB_MATH_ONE_OVER_TAU 0.636619772367581343075535053490057448f
- #define GB_MATH_ONE_OVER_PI 0.159154943091895335768883763372514362f
+ #define GB_MATH_ONE_OVER_TAU 0.159154943091895335768883763372514362f
+ #define GB_MATH_ONE_OVER_PI 0.318309886183790671537767526745028724f
#define GB_MATH_TAU_OVER_2 3.14159265358979323846264338327950288f
#define GB_MATH_TAU_OVER_4 1.570796326794896619231321691639751442f
#define GB_MATH_TAU_OVER_8 0.785398163397448309615660845819875721f
- #define GB_MATH_E 2.71828182845904523536f
+ #define GB_MATH_E 2.7182818284590452353602874713526625f
#define GB_MATH_SQRT_TWO 1.41421356237309504880168872420969808f
#define GB_MATH_SQRT_THREE 1.73205080756887729352744634150587236f
#define GB_MATH_SQRT_FIVE 2.23606797749978969640917366873127623f