diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Panorama.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 1f13c21..e9e3e4d 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -451,9 +451,8 @@ Panorama::get_earth_radius(double phi) { double b = 6356752.315; double r; double ata = tan(phi); -return EARTH_RADIUS; - r = a*pow(pow(ata,2)+1,1.0/2.0)*fabs(b)*pow(pow(b,2)+pow(a,2)*pow(ata,2),-1.0/2.0); + r = a*pow(pow(ata,2)+1,1.0/2.0)*fabs(b)*pow(pow(b,2)+pow(a,2)*pow(ata,2),-1.0/2.0); return r; } |