13 Geodesic 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";
Math::real Direct(real lat1, real lon1, real azi1, real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Math::real Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi1, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Header for GeographicLib::Geodesic class.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::Constants class.