Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
geo remove use of DBL_EPSILON
Browse files Browse the repository at this point in the history
-this doesn't seem to be (obviously?) available on qurt
  • Loading branch information
dagar authored and LorenzMeier committed May 21, 2018
1 parent cb63f16 commit 50631e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geo/geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand All @@ -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);

Expand Down

0 comments on commit 50631e5

Please sign in to comment.