10 #if !defined(GEOGRAPHICLIB_GEODESICLINE_HPP) 11 #define GEOGRAPHICLIB_GEODESICLINE_HPP 1 83 real _a, _f, _b, _c2, _f1, _salp0, _calp0, _k2,
84 _salp1, _calp1, _ssig1, _csig1, _dn1,
_stau1, _ctau1, _somg1, _comg1,
85 _A1m1, _A2m1, _A3c, _B11, _B21, _B31, _A4, _B41;
88 real _C1a[nC1_ + 1], _C1pa[nC1p_ + 1], _C2a[nC2_ + 1], _C3a[nC3_],
94 real azi1, real salp1, real calp1,
98 real azi1, real salp1, real calp1,
99 unsigned caps,
bool arcmode, real s13_a13);
227 unsigned caps = ALL);
282 real& lat2, real& lon2, real& azi2,
283 real& m12, real& M12, real& M21,
286 return GenPosition(
false, s12,
287 LATITUDE | LONGITUDE | AZIMUTH |
288 REDUCEDLENGTH | GEODESICSCALE | AREA,
289 lat2, lon2, azi2, t, m12, M12, M21, S12);
297 return GenPosition(
false, s12,
298 LATITUDE | LONGITUDE,
299 lat2, lon2, t, t, t, t, t, t);
308 return GenPosition(
false, s12,
309 LATITUDE | LONGITUDE | AZIMUTH,
310 lat2, lon2, azi2, t, t, t, t, t);
317 real& azi2, real& m12)
const {
319 return GenPosition(
false, s12,
320 LATITUDE | LONGITUDE |
321 AZIMUTH | REDUCEDLENGTH,
322 lat2, lon2, azi2, t, m12, t, t, t);
329 real& azi2, real& M12, real& M21)
332 return GenPosition(
false, s12,
333 LATITUDE | LONGITUDE |
334 AZIMUTH | GEODESICSCALE,
335 lat2, lon2, azi2, t, t, M12, M21, t);
342 real& lat2, real& lon2, real& azi2,
343 real& m12, real& M12, real& M21)
346 return GenPosition(
false, s12,
347 LATITUDE | LONGITUDE | AZIMUTH |
348 REDUCEDLENGTH | GEODESICSCALE,
349 lat2, lon2, azi2, t, m12, M12, M21, t);
395 real& s12, real& m12, real& M12, real& M21,
397 GenPosition(
true, a12,
398 LATITUDE | LONGITUDE | AZIMUTH | DISTANCE |
399 REDUCEDLENGTH | GEODESICSCALE | AREA,
400 lat2, lon2, azi2, s12, m12, M12, M21, S12);
409 GenPosition(
true, a12,
410 LATITUDE | LONGITUDE,
411 lat2, lon2, t, t, t, t, t, t);
418 real& lat2, real& lon2, real& azi2)
421 GenPosition(
true, a12,
422 LATITUDE | LONGITUDE | AZIMUTH,
423 lat2, lon2, azi2, t, t, t, t, t);
432 GenPosition(
true, a12,
433 LATITUDE | LONGITUDE | AZIMUTH | DISTANCE,
434 lat2, lon2, azi2, s12, t, t, t, t);
441 real& s12, real& m12)
const {
443 GenPosition(
true, a12,
444 LATITUDE | LONGITUDE | AZIMUTH |
445 DISTANCE | REDUCEDLENGTH,
446 lat2, lon2, azi2, s12, m12, t, t, t);
453 real& s12, real& M12, real& M21)
456 GenPosition(
true, a12,
457 LATITUDE | LONGITUDE | AZIMUTH |
458 DISTANCE | GEODESICSCALE,
459 lat2, lon2, azi2, s12, t, M12, M21, t);
466 real& s12, real& m12, real& M12, real& M21)
469 GenPosition(
true, a12,
470 LATITUDE | LONGITUDE | AZIMUTH |
471 DISTANCE | REDUCEDLENGTH | GEODESICSCALE,
472 lat2, lon2, azi2, s12, m12, M12, M21, t);
537 Math::real GenPosition(
bool arcmode, real s12_a12,
unsigned outmask,
538 real& lat2, real& lon2, real& azi2,
539 real& s12, real& m12, real& M12, real& M21,
556 void SetDistance(real s13);
567 void SetArc(real a13);
579 void GenSetDistance(
bool arcmode, real s13_a13);
589 bool Init()
const {
return _caps != 0
U; }
616 {
if (Init()) { sazi1 = _salp1; cazi1 = _calp1; } }
634 {
if (Init()) { sazi0 = _salp0; cazi0 = _calp0; } }
674 return (_caps & testcaps) == testcaps;
685 {
return Init() ? (arcmode ? _a13 : _s13) :
Math::NaN(); }
702 #endif // GEOGRAPHICLIB_GEODESICLINE_HPP Math::real Position(real s12, real &lat2, real &lon2, real &azi2) const
Math::real MajorRadius() const
#define GEOGRAPHICLIB_EXPORT
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2) const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12) const
Math::real Distance() const
Math::real Flattening() const
void g(const string &key, int i)
void EquatorialAzimuth(real &sazi0, real &cazi0) const
Header for GeographicLib::Geodesic class.
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21) const
void ArcPosition(real a12, real &lat2, real &lon2) const
static T atan2d(T y, T x)
Math::real Longitude() const
Namespace for GeographicLib.
Math::real EquatorialArc() const
Math::real Latitude() const
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12) const
void Azimuth(real &sazi1, real &cazi1) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12) const
unsigned Capabilities() const
Math::real Azimuth() const
bool Capabilities(unsigned testcaps) const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &M12, real &M21) const
Header for GeographicLib::Constants class.
void ArcPosition(real a12, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21) const
Math::real GenDistance(bool arcmode) const
Math::real Position(real s12, real &lat2, real &lon2) const
Math::real EquatorialAzimuth() const
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