From 50631e5d98e61093e85e798570503e4055e887ca Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 21 May 2018 00:40:12 -0400 Subject: [PATCH] geo remove use of DBL_EPSILON -this doesn't seem to be (obviously?) available on qurt --- geo/geo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geo/geo.cpp b/geo/geo.cpp index 9275730b92..6a98a1f230 100644 --- a/geo/geo.cpp +++ b/geo/geo.cpp @@ -144,7 +144,7 @@ int map_projection_project(const struct map_projection_reference_s *ref, double double k = 1.0; - if (fabs(c) >= DBL_EPSILON) { + if (fabs(c) > 0) { k = (c / sin(c)); } @@ -169,7 +169,7 @@ int map_projection_reproject(const struct map_projection_reference_s *ref, float const double y_rad = (double)y / CONSTANTS_RADIUS_OF_EARTH; const double c = sqrt(x_rad * x_rad + y_rad * y_rad); - if (fabs(c) > DBL_EPSILON) { + if (fabs(c) > 0) { const double sin_c = sin(c); const double cos_c = cos(c);