diff --git a/include/bounce/common/math/math.h b/include/bounce/common/math/math.h index d65d08c..4bbc091 100644 --- a/include/bounce/common/math/math.h +++ b/include/bounce/common/math/math.h @@ -23,6 +23,16 @@ #include // For abs() with integral types #include +inline bool b3IsInf(float32 x) +{ + return std::isinf(x); +} + +inline bool b3IsNaN(float32 x) +{ + return std::isnan(x); +} + inline bool b3IsValid(float32 fx) { i32 ix = *(i32*)(&fx);