From bc09f57d68dcaa71a30a0bad80776aed3b9615bc Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 18 Jan 2008 16:37:55 +0100 Subject: remove get_earthradius() shortcut --- src/Panorama.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Panorama.cxx') 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; } -- cgit v1.2.3