]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/sg_geodesy.cxx
FG_ to SG_ namespace changes.
[simgear.git] / simgear / math / sg_geodesy.cxx
index 4e0c92fb7c2176db042133e65f2a646fdd60c0ad..8969d713a5c9994eddef534cbde8550f96a2fa05 100644 (file)
@@ -27,8 +27,8 @@
 #include "localconsts.hxx"
 
 
-#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
-FG_USING_STD(cout);
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
+SG_USING_STD(cout);
 #endif
 
 // ONE_SECOND is pi/180/60/60, or about 100 feet at earths' equator
@@ -60,8 +60,8 @@ void sgGeocToGeod( double lat_geoc, double radius, double
     double t_lat, x_alpha, mu_alpha, delt_mu, r_alpha, l_point, rho_alpha;
     double sin_mu_a, denom,delt_lambda, lambda_sl, sin_lambda_sl;
 
-    if( ( (FG_PI_2 - lat_geoc) < ONE_SECOND )        // near North pole
-       || ( (FG_PI_2 + lat_geoc) < ONE_SECOND ) )   // near South pole
+    if( ( (SG_PI_2 - lat_geoc) < ONE_SECOND )        // near North pole
+       || ( (SG_PI_2 + lat_geoc) < ONE_SECOND ) )   // near South pole
     {
        *lat_geod = lat_geoc;
        *sea_level_r = EQUATORIAL_RADIUS_M*E;
@@ -180,7 +180,7 @@ void sgGeodToGeoc( double lat_geod, double alt, double *sl_radius,
 //
 // modified for FlightGear to use WGS84 only -- Norman Vine
 
-#define GEOD_INV_PI FG_PI
+#define GEOD_INV_PI SG_PI
 
 // s == distance
 // az = azimuth