summaryrefslogtreecommitdiff
path: root/src/ProjectionLSQ.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-01-02 23:29:54 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-01-02 23:29:54 +0100
commit94f00e4e823ffd21f7543b300c1b87c271bff280 (patch)
tree70d53d45b42d8249be29d4a4551e99c849a38b51 /src/ProjectionLSQ.cxx
parentbf60d4709d662fb3c28458be8b11d58c8d9f654a (diff)
consistently use get_earth_radius()
adjust earth radius value normalize alpha values between 0 and 2pi
Diffstat (limited to 'src/ProjectionLSQ.cxx')
-rw-r--r--src/ProjectionLSQ.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ProjectionLSQ.cxx b/src/ProjectionLSQ.cxx
index 24ff2a4..077641b 100644
--- a/src/ProjectionLSQ.cxx
+++ b/src/ProjectionLSQ.cxx
@@ -52,7 +52,7 @@ ProjectionLSQ::comp_params(const Hills *h, ViewParams *parms) {
scale_tmp = comp_scale(m1->alph, m2->alph, m1->x, m2->x);
- if (isnan(scale_tmp) || scale_tmp < 100.0) {
+ if (isnan(scale_tmp) || scale_tmp < 50.0) {
fprintf(stderr, "Could not determine initial scale value (%f)\n",
scale_tmp);
return 1;
@@ -235,7 +235,6 @@ ProjectionLSQ::get_coordinates(double alph, double a_nick,
double
ProjectionLSQ::comp_scale(double a1, double a2, double d1, double d2) {
-
return (fabs(d1 - d2) / fabs(a1 - a2));
}