"platforms/cuda/vscode:/vscode.git/clone" did not exist on "19841146711070cfdde08fc533532234fc5d2857"
Commit 671419fa authored by Michael Sherman's avatar Michael Sherman
Browse files

Avoid use of M_PI in header since it is non-standard.

parent c97d5ee1
......@@ -32,9 +32,6 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif
#include <cmath>
/** \file
......@@ -81,11 +78,11 @@ namespace OpenMM {
/**
* The number of radians in a degree.
*/
static const double RadiansPerDegree = M_PI/180.0;
static const double RadiansPerDegree = 3.1415926535897932385/180.0;
/**
* The number of degrees in a radian.
*/
static const double DegreesPerRadian = 180.0/M_PI;
static const double DegreesPerRadian = 180.0/3.1415926535897932385;
} // namespace OpenMM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment