From d75cd032b91d7d1d42a39aa039a7cab3e2c60eeb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 8 Nov 2008 17:53:51 +0000 Subject: [PATCH] From Jean-Sebastien Guay, replaced M_PI with osg::PI. --- examples/osgrobot/osgrobot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgrobot/osgrobot.cpp b/examples/osgrobot/osgrobot.cpp index 3bf979b6e..76a9b4822 100644 --- a/examples/osgrobot/osgrobot.cpp +++ b/examples/osgrobot/osgrobot.cpp @@ -451,7 +451,7 @@ void createAxis(osg::Transform* previousJoint) osg::MatrixTransform* mt = new osg::MatrixTransform(); previousJoint->addChild(mt); - osg::Matrix xMatrix = osg::Matrix::rotate(-M_PI_2, 0.0, 1.0, 0.0); + osg::Matrix xMatrix = osg::Matrix::rotate(-osg::PI_2, 0.0, 1.0, 0.0); mt->setMatrix(xMatrix); @@ -464,7 +464,7 @@ void createAxis(osg::Transform* previousJoint) osg::MatrixTransform *yMt = new osg::MatrixTransform(); previousJoint->addChild(yMt); - osg::Matrix yMatrix = osg::Matrix::rotate(M_PI_2, 1.0, 0.0, 0.0); + osg::Matrix yMatrix = osg::Matrix::rotate(osg::PI_2, 1.0, 0.0, 0.0); yMt->setMatrix(yMatrix); osg::ShapeDrawable *yShape = new osg::ShapeDrawable(new osg::Cylinder(osg::Vec3(0.0f,0.0f,height/2),radius,height),hints);