Fixed build error by replacing M_PI with osg::PI.

This commit is contained in:
Robert Osfield 2009-04-10 11:19:34 +00:00
parent c949789ac7
commit 435f410bf8

View File

@ -72,7 +72,7 @@ osg::Node* createScene()
unitCircle->setColorBinding(osg::Geometry::BIND_OVERALL);
const unsigned int n_points = 1024;
osg::Vec3Array * coords = new osg::Vec3Array(n_points);
const double dx = 2.0*M_PI/n_points;
const double dx = 2.0*osg::PI/n_points;
double s,c;
for (unsigned int j=0; j<n_points; ++j) {
s = sin(dx*j);