From 94f00e4e823ffd21f7543b300c1b87c271bff280 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 2 Jan 2007 23:29:54 +0100 Subject: consistently use get_earth_radius() adjust earth radius value normalize alpha values between 0 and 2pi --- src/ProjectionLSQ.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ProjectionLSQ.cxx') 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)); } -- cgit v1.2.3