17 GeodesicExact geod(Constants::WGS84_a(), Constants::WGS84_f());
20 lat1 = 40.640, lon1 = -73.779,
21 lat2 = 1.359, lon2 = 103.989;
26 cout << fixed << setprecision(3);
30 for (
int i = 0;
i <= num; ++
i) {
33 cout <<
i <<
" " << lat <<
" " << lon <<
"\n";
38 double da = line.
Arc() / num;
39 for (
int i = 0;
i <= num; ++
i) {
42 cout <<
i <<
" " << lat <<
" " << lon <<
"\n";
46 catch (
const exception&
e) {
47 cerr <<
"Caught exception: " << e.what() <<
"\n";
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) const
GeodesicLineExact InverseLine(real lat1, real lon1, real lat2, real lon2, unsigned caps=ALL) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Header for GeographicLib::GeodesicLineExact class.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Exact geodesic calculations.
Header for GeographicLib::GeodesicExact class.
Header for GeographicLib::Constants class.
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
Math::real Distance() const