summaryrefslogtreecommitdiffstats
path: root/core/math/math_defs.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-21 10:40:31 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-21 10:41:08 +0200
commit4bd5e4fd9b80384d511e4c8f2f642b43159aba4c (patch)
tree092ae6bcfd67e321558102c03f162200ba9e909e /core/math/math_defs.h
parent8cc599db645a356ca6af3bc15e7574fa6e3ada0e (diff)
downloadredot-engine-4bd5e4fd9b80384d511e4c8f2f642b43159aba4c.tar.gz
Use the standard C `INFINITY` and `NAN` constants directly
The `Math_INF` and `Math_NAN` defines were just aliases for those constants, so we might as well use them directly. Some portions of the code were already using `INFINITY` directly.
Diffstat (limited to 'core/math/math_defs.h')
-rw-r--r--core/math/math_defs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/math/math_defs.h b/core/math/math_defs.h
index df2223fb78..7692e1be47 100644
--- a/core/math/math_defs.h
+++ b/core/math/math_defs.h
@@ -43,8 +43,6 @@
#define Math_TAU 6.2831853071795864769252867666
#define Math_PI 3.1415926535897932384626433833
#define Math_E 2.7182818284590452353602874714
-#define Math_INF INFINITY
-#define Math_NAN NAN
#ifdef DEBUG_ENABLED
#define MATH_CHECKS