16 Rhumb rhumb(Constants::WGS84_a(), Constants::WGS84_f());
19 lat1 = 40.640, lon1 = -73.779,
20 lat2 = 1.359, lon2 = 103.989;
22 rhumb.
Inverse(lat1, lon1, lat2, lon2, s12, azi12);
28 cout << fixed << setprecision(3);
31 double ds = s12 / num;
32 for (
int i = 0;
i <= num; ++
i) {
35 cout <<
i <<
" " << lat <<
" " << lon <<
"\n";
39 catch (
const exception&
e) {
40 cerr <<
"Caught exception: " << e.what() <<
"\n";
void Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi12, real &S12) const
Header for GeographicLib::Rhumb and GeographicLib::RhumbLine classes.
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
RhumbLine Line(real lat1, real lon1, real azi12) const
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::Constants class.
Solve of the direct and inverse rhumb problems.
Find a sequence of points on a single rhumb line.
void Position(real s12, real &lat2, real &lon2, real &S12) const