13 lines
657 B
Plaintext
13 lines
657 B
Plaintext
$OpenBSD: patch-src_IProjection_cpp,v 1.2 2008/03/27 00:36:46 pvalchev Exp $
|
|
--- src/IProjection.cpp.orig Wed Feb 13 02:15:18 2008
|
|
+++ src/IProjection.cpp Sun Mar 23 22:36:19 2008
|
|
@@ -108,7 +108,7 @@ double IProjection::distance(const XY& p1, const XY& p
|
|
lambda = L + (1-C) * f * sinAlpha * (sigma + C*sinSigma*(cos2SigmaM + C * cosSigma * (-1 + 2 * cos2SigmaM * cos2SigmaM)));
|
|
}
|
|
// formula failed to converge
|
|
- if (iterLimit==0) return FP_NAN;
|
|
+ //if (iterLimit==0) return FP_NAN;
|
|
|
|
double uSq = cosSqAlpha * (a*a - b*b) / (b*b);
|
|
double A = 1 + uSq/16384*(4096+uSq*(-768+uSq*(320-175*uSq)));
|