Skip to content

Commit a2b6f91

Browse files
authored
Merge pull request #1817 from Naros/GH-1816
Reintroduce Math_INF and Math_NAN defines
2 parents 134e8b7 + 6a21f76 commit a2b6f91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/godot_cpp/core/math_defs.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ namespace godot {
4444
#define Math_TAU 6.2831853071795864769252867666
4545
#define Math_PI 3.1415926535897932384626433833
4646
#define Math_E 2.7182818284590452353602874714
47+
#define Math_INF INFINITY
48+
#define Math_NAN NAN
4749

4850
#ifdef DEBUG_ENABLED
4951
#define MATH_CHECKS

0 commit comments

Comments
 (0)