diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2016-03-23 15:37:45 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2016-03-23 15:37:45 +0100 |
commit | 9642fd7a937942037a3ea0d3c51b799be197782f (patch) | |
tree | 6ff10ef44faf350274ac0a87e5f4eb535dd73250 /unsupported/Eigen/OpenGLSupport | |
parent | 28e02996df54240d44ead1bf827b867c22a224a9 (diff) |
Replace all M_PI by EIGEN_PI and add a check to the testsuite.
Diffstat (limited to 'unsupported/Eigen/OpenGLSupport')
-rw-r--r-- | unsupported/Eigen/OpenGLSupport | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/OpenGLSupport b/unsupported/Eigen/OpenGLSupport index 288c6b0fb..87f50947d 100644 --- a/unsupported/Eigen/OpenGLSupport +++ b/unsupported/Eigen/OpenGLSupport @@ -180,11 +180,11 @@ template<typename Scalar> void glLoadMatrix(const Transform<Scalar,3,AffineCompa inline void glRotate(const Rotation2D<float>& rot) { - glRotatef(rot.angle()*180.f/float(M_PI), 0.f, 0.f, 1.f); + glRotatef(rot.angle()*180.f/float(EIGEN_PI), 0.f, 0.f, 1.f); } inline void glRotate(const Rotation2D<double>& rot) { - glRotated(rot.angle()*180.0/M_PI, 0.0, 0.0, 1.0); + glRotated(rot.angle()*180.0/EIGEN_PI, 0.0, 0.0, 1.0); } template<typename Derived> void glRotate(const RotationBase<Derived,3>& rot) |