1282 const double epsilon = 1e-8;
1297 CU_ASSERT_DOUBLE_EQUAL(d, 110574.3885577987957342, epsilon);
1307 CU_ASSERT_DOUBLE_EQUAL(d, 1113194.9079327357264771, epsilon);
1317 CU_ASSERT_DOUBLE_EQUAL(d, 111319.4907932735726477, epsilon);
1327 CU_ASSERT_DOUBLE_EQUAL(d, 19893357.0700676468277450, epsilon);
1337 CU_ASSERT_DOUBLE_EQUAL(d, 10001965.7293127228117396, epsilon);
static void point_set(double lon, double lat, GEOGRAPHIC_POINT *p)
void spheroid_init(SPHEROID *s, double a, double b)
Initialize a spheroid object for use in geodetic functions.
double spheroid_distance(const GEOGRAPHIC_POINT *a, const GEOGRAPHIC_POINT *b, const SPHEROID *spheroid)
Computes the shortest distance along the surface of the spheroid between two points.
Point in spherical coordinates on the world.