Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
671419fa
Commit
671419fa
authored
Apr 27, 2009
by
Michael Sherman
Browse files
Avoid use of M_PI in header since it is non-standard.
parent
c97d5ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
openmmapi/include/openmm/Units.h
openmmapi/include/openmm/Units.h
+2
-5
No files found.
openmmapi/include/openmm/Units.h
View file @
671419fa
...
@@ -32,9 +32,6 @@
...
@@ -32,9 +32,6 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */
* -------------------------------------------------------------------------- */
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif
#include <cmath>
#include <cmath>
/** \file
/** \file
...
@@ -81,11 +78,11 @@ namespace OpenMM {
...
@@ -81,11 +78,11 @@ namespace OpenMM {
/**
/**
* The number of radians in a degree.
* 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.
* 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
}
// namespace OpenMM
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment