10 #if !defined(GEOGRAPHICLIB_GEODESICLINE_HPP) 11 #define GEOGRAPHICLIB_GEODESICLINE_HPP 1 74 static const int nC1_ = Geodesic::nC1_;
75 static const int nC1p_ = Geodesic::nC1p_;
76 static const int nC2_ = Geodesic::nC2_;
77 static const int nC3_ = Geodesic::nC3_;
78 static const int nC4_ = Geodesic::nC4_;
81 real _lat1, _lon1, _azi1;
82 real _a, _f, _b, _c2, _f1, _salp0, _calp0, _k2,
83 _salp1, _calp1, _ssig1, _csig1, _dn1, _stau1, _ctau1, _somg1, _comg1,
84 _A1m1, _A2m1, _A3c, _B11, _B21, _B31, _A4, _B41;
87 real _C1a[nC1_ + 1], _C1pa[nC1p_ + 1], _C2a[nC2_ + 1], _C3a[nC3_],
93 real azi1, real salp1, real calp1,
97 real azi1, real salp1, real calp1,
98 unsigned caps,
bool arcmode, real s13_a13);
101 CAP_NONE = Geodesic::CAP_NONE,
102 CAP_C1 = Geodesic::CAP_C1,
103 CAP_C1p = Geodesic::CAP_C1p,
104 CAP_C2 = Geodesic::CAP_C2,
105 CAP_C3 = Geodesic::CAP_C3,
106 CAP_C4 = Geodesic::CAP_C4,
107 CAP_ALL = Geodesic::CAP_ALL,
108 CAP_MASK = Geodesic::CAP_MASK,
109 OUT_ALL = Geodesic::OUT_ALL,
110 OUT_MASK = Geodesic::OUT_MASK,
226 unsigned caps = ALL);
281 real& lat2, real& lon2, real& azi2,
282 real& m12, real& M12, real& M21,
285 return GenPosition(
false, s12,
286 LATITUDE | LONGITUDE | AZIMUTH |
287 REDUCEDLENGTH | GEODESICSCALE | AREA,
288 lat2, lon2, azi2, t, m12, M12, M21, S12);
296 return GenPosition(
false, s12,
297 LATITUDE | LONGITUDE,
298 lat2, lon2, t, t, t, t, t, t);
307 return GenPosition(
false, s12,
308 LATITUDE | LONGITUDE | AZIMUTH,
309 lat2, lon2, azi2, t, t, t, t, t);
316 real& azi2, real& m12)
const {
318 return GenPosition(
false, s12,
319 LATITUDE | LONGITUDE |
320 AZIMUTH | REDUCEDLENGTH,
321 lat2, lon2, azi2, t, m12, t, t, t);
328 real& azi2, real& M12, real& M21)
331 return GenPosition(
false, s12,
332 LATITUDE | LONGITUDE |
333 AZIMUTH | GEODESICSCALE,
334 lat2, lon2, azi2, t, t, M12, M21, t);
341 real& lat2, real& lon2, real& azi2,
342 real& m12, real& M12, real& M21)
345 return GenPosition(
false, s12,
346 LATITUDE | LONGITUDE | AZIMUTH |
347 REDUCEDLENGTH | GEODESICSCALE,
348 lat2, lon2, azi2, t, m12, M12, M21, t);
394 real& s12, real& m12, real& M12, real& M21,
396 GenPosition(
true, a12,
397 LATITUDE | LONGITUDE | AZIMUTH | DISTANCE |
398 REDUCEDLENGTH | GEODESICSCALE | AREA,
399 lat2, lon2, azi2, s12, m12, M12, M21, S12);
408 GenPosition(
true, a12,
409 LATITUDE | LONGITUDE,
410 lat2, lon2, t, t, t, t, t, t);
417 real& lat2, real& lon2, real& azi2)
420 GenPosition(
true, a12,
421 LATITUDE | LONGITUDE | AZIMUTH,
422 lat2, lon2, azi2, t, t, t, t, t);
431 GenPosition(
true, a12,
432 LATITUDE | LONGITUDE | AZIMUTH | DISTANCE,
433 lat2, lon2, azi2, s12, t, t, t, t);
440 real& s12, real& m12)
const {
442 GenPosition(
true, a12,
443 LATITUDE | LONGITUDE | AZIMUTH |
444 DISTANCE | REDUCEDLENGTH,
445 lat2, lon2, azi2, s12, m12, t, t, t);
452 real& s12, real& M12, real& M21)
455 GenPosition(
true, a12,
456 LATITUDE | LONGITUDE | AZIMUTH |
457 DISTANCE | GEODESICSCALE,
458 lat2, lon2, azi2, s12, t, M12, M21, t);
465 real& s12, real& m12, real& M12, real& M21)
468 GenPosition(
true, a12,
469 LATITUDE | LONGITUDE | AZIMUTH |
470 DISTANCE | REDUCEDLENGTH | GEODESICSCALE,
471 lat2, lon2, azi2, s12, m12, M12, M21, t);
536 Math::real GenPosition(
bool arcmode, real s12_a12,
unsigned outmask,
537 real& lat2, real& lon2, real& azi2,
538 real& s12, real& m12, real& M12, real& M21,
555 void SetDistance(real s13);
566 void SetArc(real a13);
578 void GenSetDistance(
bool arcmode, real s13_a13);
588 bool Init()
const {
return _caps != 0U; }
615 {
if (Init()) { sazi1 = _salp1; cazi1 = _calp1; } }
633 {
if (Init()) { sazi0 = _salp0; cazi0 = _calp0; } }
673 return (_caps & testcaps) == testcaps;
684 {
return Init() ? (arcmode ? _a13 : _s13) :
Math::NaN(); }
701 #endif // GEOGRAPHICLIB_GEODESICLINE_HPP Math::real Position(real s12, real &lat2, real &lon2) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2) const
#define GEOGRAPHICLIB_EXPORT
void EquatorialAzimuth(real &sazi0, real &cazi0) const
Math::real Flattening() const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21) const
GeographicLib::Math::real real
void Azimuth(real &sazi1, real &cazi1) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Math::real GenDistance(bool arcmode) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12) const
Math::real MajorRadius() const
Math::real EquatorialArc() const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21) const
unsigned Capabilities() const
Math::real Azimuth() const
Math::real Distance() const
Header for GeographicLib::Geodesic class.
Math::real EquatorialAzimuth() const
void ArcPosition(real a12, real &lat2, real &lon2) const
bool Capabilities(unsigned testcaps) const
static T atan2d(T y, T x)
Namespace for GeographicLib.
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12) const
Math::real Latitude() const
Header for GeographicLib::Constants class.
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &M12, real &M21) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &M12, real &M21) const
Math::real Longitude() const