ocssw
V2022
|
vincenty.c
Go to the documentation of this file.
31 ck_assert(dbl_equal_eps(vincenty_distance(0.000000, 0.000000, 0.000000, -2.000000), 222639, 0.0000001));
32 ck_assert(dbl_equal_eps(vincenty_distance(0.000000, 0.000000, 0.000000, -1.000000), 111319.5, 0.0000001));
33 ck_assert(dbl_equal_eps(vincenty_distance(0.000000, 0.000000, 0.000000, 1.000000), 111319.5, 0.0000001));
34 ck_assert(dbl_equal_eps(vincenty_distance(0.000000, 0.000000, 0.000000, 2.000000), 222639, 0.0000001));
Provides a single function to calculate geographical distances.
double vincenty_distance(double lat1, double lon1, double lat2, double lon2)
Calculate geographical distances using Vincenty's algorithm.
Definition: vincenty.c:47
subroutine diff(x, conec, n, dconecno, dn, dconecmk, units, u, inno, i, outno, o, input, deriv)
Definition: ffnet.f:205