summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-01-18 16:37:55 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-01-18 16:37:55 +0100
commitbc09f57d68dcaa71a30a0bad80776aed3b9615bc (patch)
tree5194f99705cbdc241812d0932d1ecdc21745d47e /src
parent1b9caaa5d92c0b7210bfadc708b12aa2298c2f16 (diff)
remove get_earthradius() shortcut
Diffstat (limited to 'src')
-rw-r--r--src/Panorama.cxx3
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;
}