Fixed warning

This commit is contained in:
Robert Osfield 2004-06-28 14:18:48 +00:00
parent ca96c9e731
commit 124f64c55f

View File

@ -37,9 +37,10 @@ namespace
x /= r;
float a;
if (x < 0 && y >= 0) a = osg::PI_2 - acosf(-x);
if (x < 0 && y < 0) a = acosf(-x) + osg::PI_2;
if (x >= 0 && y >= 0) a = acosf(x) + 3 * osg::PI_2;
if (x >= 0 && y < 0) a = 3 * osg::PI_2 - acosf(x);
else if (x < 0 && y < 0) a = acosf(-x) + osg::PI_2;
else if (x >= 0 && y >= 0) a = acosf(x) + 3 * osg::PI_2;
else if (x >= 0 && y < 0) a = 3 * osg::PI_2 - acosf(x);
else a = 0.0f;
return a/osg::PI/2;
}