13 GeodesicExact geod(Constants::WGS84_a(), Constants::WGS84_f());
17 double lat1 = 40.6, lon1 = -73.8, s12 = 5.5e6, azi1 = 51;
19 geod.
Direct(lat1, lon1, azi1, s12, lat2, lon2);
20 cout << lat2 <<
" " << lon2 <<
"\n";
25 lat1 = 40.6, lon1 = -73.8,
26 lat2 = 51.6, lon2 = -0.5;
28 geod.
Inverse(lat1, lon1, lat2, lon2, s12);
32 catch (
const exception&
e) {
33 cerr <<
"Caught exception: " <<
e.what() <<
"\n";