Windows fix for M_PI

This commit is contained in:
Mrna 2025-10-07 12:40:42 +02:00
parent 4e950c15a5
commit 81f7de05fb

View File

@ -11,6 +11,12 @@
#include <utility>
#include <functional>
#ifdef _WIN32
#include <numbers>
#define M_PI std::numbers::pi
// TODO use std::numbers::pi instead of M_PI
#endif
template <typename T>
requires std::floating_point<T>
static inline bool equalEpsilon(const T &a, const T &b) {