10 const Geodesic& geod = Geodesic::WGS84();
13 lat1 = 40.6, lon1 = -73.8,
14 lat2 = 51.6, lon2 = -0.5;
16 geod.
Inverse(lat1, lon1, lat2, lon2, s12);
17 cout << s12 / 1000 <<
" km\n";
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.