Hi,

I was looking at the method mentioned above, which is used for
calculating the lat/long from a geocentric position.

The longitude gets calculated using
longitude = atan2(Y,X);

However when X = Y = 0 the MSDN says: atan2 is well-defined for every
point other than the origin, even if x equals 0 and y does not equal 0.

I guess we need an "if" here. :-)

Richard


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to