Added a f after 2.0 definitions in atan2 to get round stupid MS errors.

This commit is contained in:
Robert Osfield
2003-11-26 13:21:40 +00:00
parent f0e24bdd5a
commit a0375f58da

View File

@@ -204,8 +204,8 @@ int main( int argc, char **argv )
// create the windows and run the threads.
viewer.realize();
double vfov = osg::RadiansToDegrees(atan2(height/2.0,distance)*2.0);
double hfov = osg::RadiansToDegrees(atan2(width/2.0,distance)*2.0);
double vfov = osg::RadiansToDegrees(atan2(height/2.0f,distance)*2.0);
double hfov = osg::RadiansToDegrees(atan2(width/2.0f,distance)*2.0);
viewer.setLensPerspective( hfov, vfov, 0.1, 1000.0);