10#if !defined(GEOGRAPHICLIB_GEODESICLINE_HPP)
11#define GEOGRAPHICLIB_GEODESICLINE_HPP 1
75 static const int nC1_ = Geodesic::nC1_;
76 static const int nC1p_ = Geodesic::nC1p_;
77 static const int nC2_ = Geodesic::nC2_;
78 static const int nC3_ = Geodesic::nC3_;
79 static const int nC4_ = Geodesic::nC4_;
82 real _lat1, _lon1, _azi1;
83 real _a, _f, _b, _c2, _f1, _salp0, _calp0, _k2,
84 _salp1, _calp1, _ssig1, _csig1, _dn1, _stau1, _ctau1, _somg1, _comg1,
85 _aA1m1, _aA2m1, _aA3c, _bB11, _bB21, _bB31, _aA4, _bB41;
88 real _cC1a[nC1_ + 1], _cC1pa[nC1p_ + 1], _cC2a[nC2_ + 1], _cC3a[nC3_],
94 real azi1, real salp1, real calp1,
98 real azi1, real salp1, real calp1,
99 unsigned caps,
bool arcmode, real s13_a13);
102 CAP_NONE = Geodesic::CAP_NONE,
103 CAP_C1 = Geodesic::CAP_C1,
104 CAP_C1p = Geodesic::CAP_C1p,
105 CAP_C2 = Geodesic::CAP_C2,
106 CAP_C3 = Geodesic::CAP_C3,
107 CAP_C4 = Geodesic::CAP_C4,
108 CAP_ALL = Geodesic::CAP_ALL,
109 CAP_MASK = Geodesic::CAP_MASK,
110 OUT_ALL = Geodesic::OUT_ALL,
111 OUT_MASK = Geodesic::OUT_MASK,
233 unsigned caps = ALL);
288 real& lat2, real& lon2, real& azi2,
289 real& m12, real& M12, real& M21,
292 return GenPosition(
false, s12,
293 LATITUDE | LONGITUDE | AZIMUTH |
294 REDUCEDLENGTH | GEODESICSCALE | AREA,
295 lat2, lon2, azi2, t, m12, M12, M21, S12);
303 return GenPosition(
false, s12,
304 LATITUDE | LONGITUDE,
305 lat2, lon2, t, t, t, t, t, t);
314 return GenPosition(
false, s12,
315 LATITUDE | LONGITUDE | AZIMUTH,
316 lat2, lon2, azi2, t, t, t, t, t);
323 real& azi2, real& m12)
const {
325 return GenPosition(
false, s12,
326 LATITUDE | LONGITUDE |
327 AZIMUTH | REDUCEDLENGTH,
328 lat2, lon2, azi2, t, m12, t, t, t);
335 real& azi2, real& M12, real& M21)
338 return GenPosition(
false, s12,
339 LATITUDE | LONGITUDE |
340 AZIMUTH | GEODESICSCALE,
341 lat2, lon2, azi2, t, t, M12, M21, t);
348 real& lat2, real& lon2, real& azi2,
349 real& m12, real& M12, real& M21)
352 return GenPosition(
false, s12,
353 LATITUDE | LONGITUDE | AZIMUTH |
354 REDUCEDLENGTH | GEODESICSCALE,
355 lat2, lon2, azi2, t, m12, M12, M21, t);
401 real& s12, real& m12, real& M12, real& M21,
403 GenPosition(
true, a12,
404 LATITUDE | LONGITUDE | AZIMUTH | DISTANCE |
405 REDUCEDLENGTH | GEODESICSCALE | AREA,
406 lat2, lon2, azi2, s12, m12, M12, M21, S12);
415 GenPosition(
true, a12,
416 LATITUDE | LONGITUDE,
417 lat2, lon2, t, t, t, t, t, t);
424 real& lat2, real& lon2, real& azi2)
427 GenPosition(
true, a12,
428 LATITUDE | LONGITUDE | AZIMUTH,
429 lat2, lon2, azi2, t, t, t, t, t);
438 GenPosition(
true, a12,
439 LATITUDE | LONGITUDE | AZIMUTH | DISTANCE,
440 lat2, lon2, azi2, s12, t, t, t, t);
447 real& s12, real& m12)
const {
449 GenPosition(
true, a12,
450 LATITUDE | LONGITUDE | AZIMUTH |
451 DISTANCE | REDUCEDLENGTH,
452 lat2, lon2, azi2, s12, m12, t, t, t);
459 real& s12, real& M12, real& M21)
462 GenPosition(
true, a12,
463 LATITUDE | LONGITUDE | AZIMUTH |
464 DISTANCE | GEODESICSCALE,
465 lat2, lon2, azi2, s12, t, M12, M21, t);
472 real& s12, real& m12, real& M12, real& M21)
475 GenPosition(
true, a12,
476 LATITUDE | LONGITUDE | AZIMUTH |
477 DISTANCE | REDUCEDLENGTH | GEODESICSCALE,
478 lat2, lon2, azi2, s12, m12, M12, M21, t);
543 Math::real GenPosition(
bool arcmode,
real s12_a12,
unsigned outmask,
562 void SetDistance(
real s13);
573 void SetArc(
real a13);
585 void GenSetDistance(
bool arcmode,
real s13_a13);
595 bool Init()
const {
return _caps != 0U; }
622 {
if (Init()) { sazi1 = _salp1; cazi1 = _calp1; } }
640 {
if (Init()) { sazi0 = _salp0; cazi0 = _calp0; } }
680 return (_caps & testcaps) == testcaps;
691 {
return Init() ? (arcmode ? _a13 : _s13) :
Math::NaN(); }
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::Geodesic class.
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) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &M12, real &M21) const
unsigned Capabilities() const
Math::real Position(real s12, real &lat2, real &lon2) const
Math::real Latitude() const
Math::real Distance() const
Math::real EquatorialAzimuth() const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21) const
Math::real Azimuth() const
void Azimuth(real &sazi1, real &cazi1) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) 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) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21) const
Math::real EquatorialRadius() const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12) const
void EquatorialAzimuth(real &sazi0, real &cazi0) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2) const
bool Capabilities(unsigned testcaps) const
Math::real Longitude() const
Math::real EquatorialArc() const
Math::real Flattening() const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2) const
static T atan2d(T y, T x)
Namespace for GeographicLib.