Better use the `M_PI` of defined in `cmath` as the value of Pi. You will have to add `#define _USE_MATH_DEFINES`.