summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/math.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/core/math.hpp')
-rw-r--r--include/godot_cpp/core/math.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/godot_cpp/core/math.hpp b/include/godot_cpp/core/math.hpp
index 2cbbe27..1949360 100644
--- a/include/godot_cpp/core/math.hpp
+++ b/include/godot_cpp/core/math.hpp
@@ -613,6 +613,14 @@ inline bool is_inf(double p_val) {
return std::isinf(p_val);
}
+inline bool is_finite(float p_val) {
+ return std::isfinite(p_val);
+}
+
+inline bool is_finite(double p_val) {
+ return std::isfinite(p_val);
+}
+
inline bool is_equal_approx(float a, float b) {
// Check for exact equality first, required to handle "infinity" values.
if (a == b) {