On Windows with MSVC, the constants M_PI, M_E, etc. are not defined by default in <cmath> like they are on GCC/Clang. Varous fix exist, one is to add #define _USE_MATH_DEFINES before: #include <math.h>
On Windows with MSVC, the constants M_PI, M_E, etc. are not defined by default in like they are on GCC/Clang.
Varous fix exist, one is to add
#define _USE_MATH_DEFINES
before:
#include <math.h>