10#if !defined(GEOGRAPHICLIB_RHUMB_HPP)
11#define GEOGRAPHICLIB_RHUMB_HPP 1
17#if !defined(GEOGRAPHICLIB_RHUMBAREA_ORDER)
22# define GEOGRAPHICLIB_RHUMBAREA_ORDER \
23 (GEOGRAPHICLIB_PRECISION == 2 ? 6 : \
24 (GEOGRAPHICLIB_PRECISION == 1 ? 4 : 8))
29# pragma warning (push)
30# pragma warning (disable: 4251)
86 real _a, _f, _n, _rm, _c2;
88 std::vector<real> _pP;
95 real operator()(real chi)
const;
104 bool,
real s12,
unsigned outmask,
107 GenDirect(lat1, lon1, azi12, s12, outmask, lat2, lon2, S12);
110 unsigned outmask,
real& s12,
real& azi12,
112 GenInverse(lat1, lon1, lat2, lon2, outmask, s12, azi12, S12);
156 LONG_UNROLL = 1U<<15,
200 void Direct(real lat1, real lon1, real azi12, real s12,
201 real& lat2, real& lon2, real& S12)
const {
202 GenDirect(lat1, lon1, azi12, s12,
203 LATITUDE | LONGITUDE | AREA, lat2, lon2, S12);
209 void Direct(real lat1, real lon1, real azi12, real s12,
210 real& lat2, real& lon2)
const {
212 GenDirect(lat1, lon1, azi12, s12, LATITUDE | LONGITUDE, lat2, lon2, t);
243 unsigned outmask,
real& lat2,
real& lon2,
real& S12)
const;
267 void Inverse(real lat1, real lon1, real lat2, real lon2,
268 real& s12, real& azi12, real& S12)
const {
269 GenInverse(lat1, lon1, lat2, lon2,
270 DISTANCE | AZIMUTH | AREA, s12, azi12, S12);
276 void Inverse(real lat1, real lon1, real lat2, real lon2,
277 real& s12, real& azi12)
const {
279 GenInverse(lat1, lon1, lat2, lon2, DISTANCE | AZIMUTH, s12, azi12, t);
326 RhumbLine Line(real lat1, real lon1, real azi12)
const;
360 static const Rhumb& WGS84();
386 real _lat1, _lon1, _azi12, _salp, _calp, _mu1, _psi1;
466 void Position(real s12, real& lat2, real& lon2, real& S12)
const {
467 GenPosition(s12, LATITUDE | LONGITUDE | AREA, lat2, lon2, S12);
474 void Position(real s12, real& lat2, real& lon2)
const {
476 GenPosition(s12, LATITUDE | LONGITUDE, lat2, lon2, t);
507 void GenPosition(
real s12,
unsigned outmask,
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
Header for the GeographicLib::DAuxLatitude class.
GeographicLib::Math::real real
#define GEOGRAPHICLIB_RHUMBAREA_ORDER
An accurate representation of angles.
Conversions between auxiliary latitudes.
Divided differences of auxiliary latitudes.
Find a sequence of points on a single rhumb line.
void Position(real s12, real &lat2, real &lon2) const
void Position(real s12, real &lat2, real &lon2, real &S12) const
RhumbLine(const RhumbLine &)=default
Math::real EquatorialRadius() const
Math::real Latitude() const
Math::real Azimuth() const
Math::real Flattening() const
Math::real Longitude() const
Solve of the direct and inverse rhumb problems.
Math::real Flattening() const
void Direct(real lat1, real lon1, real azi12, real s12, real &lat2, real &lon2, real &S12) const
void Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi12, real &S12) const
void Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi12) const
void Direct(real lat1, real lon1, real azi12, real s12, real &lat2, real &lon2) const
Math::real EquatorialRadius() const
Math::real EllipsoidArea() const
Namespace for GeographicLib.