]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/polar3d.cxx
Trying to sort out name space confusing with SG_PI and SGD_PI and varients.
[simgear.git] / simgear / math / polar3d.cxx
index 7a36e96d515b3ee652425d0d0474d03bd2e38d08..b3c0fe60f134f67c342b96f92c59b12682189c94 100644 (file)
@@ -39,11 +39,11 @@ double fgGeodAltFromCart(const Point3D& cp)
     double lat_geoc, radius;
     double result;
 
-    lat_geoc = SG_PI_2 - atan2( sqrt(cp.x()*cp.x() + cp.y()*cp.y()), cp.z() );
+    lat_geoc = SGD_PI_2 - atan2( sqrt(cp.x()*cp.x() + cp.y()*cp.y()), cp.z() );
     radius = sqrt( cp.x()*cp.x() + cp.y()*cp.y() + cp.z()*cp.z() );
        
-    if( ( (SG_PI_2 - lat_geoc) < ONE_SECOND )        // near North pole
-       || ( (SG_PI_2 + lat_geoc) < ONE_SECOND ) )   // near South pole
+    if( ( (SGD_PI_2 - lat_geoc) < ONE_SECOND )        // near North pole
+       || ( (SGD_PI_2 + lat_geoc) < ONE_SECOND ) )   // near South pole
     {
        result = radius - EQUATORIAL_RADIUS_M*E;
     } else {