Browse Source

Reintroduce Math_INF and Math_NAN defines

Chris Cranford 2 tháng trước cách đây
mục cha
commit
6a21f76c4d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      include/godot_cpp/core/math_defs.hpp

+ 2 - 0
include/godot_cpp/core/math_defs.hpp

@@ -44,6 +44,8 @@ namespace godot {
 #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