Switch to using built-in M_PI, even on MSVC (#68)

This commit is contained in:
Chris Hennes
2024-06-25 19:12:17 -05:00
committed by GitHub
parent 9058e0849d
commit d50532d3e7
12 changed files with 34 additions and 62 deletions

View File

@@ -7,7 +7,6 @@
***************************************************************************/
#include <cmath>
#include "corecrt_math_defines.h"
#include <stdexcept>
#include "Numeric.h"
@@ -25,7 +24,7 @@ double MbD::Numeric::arcTan0to2piYoverX(double y, double x)
}
else {
//"Third and forth quadrants."
return 2.0 * OS_M_PI + std::atan2(y, x);
return 2.0 * M_PI + std::atan2(y, x);
}
}