diff --git a/cpp/src/math.hpp b/cpp/src/math.hpp index ad3dcd0..fbd0682 100644 --- a/cpp/src/math.hpp +++ b/cpp/src/math.hpp @@ -11,6 +11,12 @@ #include #include +#ifdef _WIN32 +#include +#define M_PI std::numbers::pi +// TODO use std::numbers::pi instead of M_PI +#endif + template requires std::floating_point static inline bool equalEpsilon(const T &a, const T &b) {