]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/fg_geodesy.cxx
Converted to the LGPL licencing terms.
[simgear.git] / simgear / math / fg_geodesy.cxx
index 023776355e2fa6db91a42939db45219723b2b6cb..506ae8771a7aa74d57cfa4af27c4f09cac5c7a12 100644 (file)
@@ -17,8 +17,8 @@
 # include <errno.h>
 #endif
 
-#include <simgear/logstream.hxx>
 #include <simgear/constants.h>
+#include <simgear/debug/logstream.hxx>
 
 #include "point3d.hxx"
 #include "fg_geodesy.hxx"
@@ -56,8 +56,11 @@ void fgGeocToGeod( double lat_geoc, double radius, double
        *sea_level_r = EQUATORIAL_RADIUS_M*E;
        *alt = radius - *sea_level_r;
     } else {
+       // cout << "  lat_geoc = " << lat_geoc << endl;
        t_lat = tan(lat_geoc);
+       // cout << "  tan(t_lat) = " << t_lat << endl;
        x_alpha = E*EQUATORIAL_RADIUS_M/sqrt(t_lat*t_lat + E*E);
+       // cout << "  x_alpha = " << x_alpha << endl;
        double tmp = RESQ_M - x_alpha * x_alpha;
        if ( tmp < 0.0 ) { tmp = 0.0; }
        mu_alpha = atan2(sqrt(tmp),E*x_alpha);