Skip to content

Commit

Permalink
Emergency fix to Vincenty's formula at antipodal points
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetitpig committed Sep 5, 2020
1 parent 5d1d33d commit d895e73
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/vincenty.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ void vincenty_inverse(struct Coordinates *location, struct Coordinates *location
}

a = helmertA(calp);

ssig = hypotl(cu2 * sinl(lambda), cu1 * su2 - su1 * cu2 * cosl(lambda));
csig = su1 * su2 + cu1 * cu2 * cosl(lambda);
sig = atan2_modified(ssig, csig);
b = helmertB(calp, sig);

s = RAD_MIN * a * (sig + b);
Expand Down

0 comments on commit d895e73

Please sign in to comment.