bug fix: Microsoft Windows has trouble with M_PI.