Show
Ignore:
Timestamp:
11/08/08 18:53:51 (6 years ago)
Author:
robert
Message:

From Jean-Sebastien Guay, replaced M_PI with osg::PI.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgrobot/osgrobot.cpp

    r9071 r9135  
    452452    previousJoint->addChild(mt); 
    453453 
    454     osg::Matrix xMatrix = osg::Matrix::rotate(-M_PI_2, 0.0, 1.0, 0.0); 
     454    osg::Matrix xMatrix = osg::Matrix::rotate(-osg::PI_2, 0.0, 1.0, 0.0); 
    455455    mt->setMatrix(xMatrix); 
    456456 
     
    465465    osg::MatrixTransform *yMt = new osg::MatrixTransform(); 
    466466    previousJoint->addChild(yMt); 
    467     osg::Matrix yMatrix = osg::Matrix::rotate(M_PI_2, 1.0, 0.0, 0.0); 
     467    osg::Matrix yMatrix = osg::Matrix::rotate(osg::PI_2, 1.0, 0.0, 0.0); 
    468468    yMt->setMatrix(yMatrix); 
    469469