Windows fix for M_PI
This commit is contained in:
parent
4e950c15a5
commit
81f7de05fb
@ -11,6 +11,12 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <functional>
|
#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>
|
template <typename T>
|
||||||
requires std::floating_point<T>
|
requires std::floating_point<T>
|
||||||
static inline bool equalEpsilon(const T &a, const T &b) {
|
static inline bool equalEpsilon(const T &a, const T &b) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user