Added explict casts to double to prevent VS compiler error

This commit is contained in:
Robert Osfield 2008-01-28 19:42:16 +00:00
parent 1203cb71a7
commit 051259760a

View File

@ -1161,7 +1161,7 @@ static osg::Geometry* createParoramicSphericalDisplayDistortionMesh(const osg::V
double beta = atan2(sqrt(pos.x()*pos.x() + pos.y()*pos.y()), pos.z());
if (beta<0.0) beta += 2.0*osg::PI;
double gamma = atan2(sqrt(pos.x()*pos.x() + pos.y()*pos.y()), pos.z()+distance);
double gamma = atan2(sqrt(double(pos.x()*pos.x() + pos.y()*pos.y())), double(pos.z()+distance));
if (gamma<0.0) gamma += 2.0*osg::PI;