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) 87 real _a, _f, _n, _rm, _c2;
89 std::vector<real> _pP;
96 real operator()(real chi)
const;
105 bool,
real s12,
unsigned outmask,
108 GenDirect(lat1, lon1, azi12, s12, outmask, lat2, lon2, S12);
111 unsigned outmask,
real& s12,
real& azi12,
113 GenInverse(lat1, lon1, lat2, lon2, outmask, s12, azi12, S12);
157 LONG_UNROLL = 1U<<15,
201 void Direct(real lat1, real lon1, real azi12, real s12,
202 real& lat2, real& lon2, real& S12)
const {
203 GenDirect(lat1, lon1, azi12, s12,
204 LATITUDE | LONGITUDE | AREA, lat2, lon2, S12);
210 void Direct(real lat1, real lon1, real azi12, real s12,
211 real& lat2, real& lon2)
const {
213 GenDirect(lat1, lon1, azi12, s12, LATITUDE | LONGITUDE, lat2, lon2, t);
244 unsigned outmask,
real& lat2,
real& lon2,
real& S12)
const;
268 void Inverse(real lat1, real lon1, real lat2, real lon2,
269 real& s12, real& azi12, real& S12)
const {
270 GenInverse(lat1, lon1, lat2, lon2,
271 DISTANCE | AZIMUTH | AREA, s12, azi12, S12);
277 void Inverse(real lat1, real lon1, real lat2, real lon2,
278 real& s12, real& azi12)
const {
280 GenInverse(lat1, lon1, lat2, lon2, DISTANCE | AZIMUTH, s12, azi12, t);
327 RhumbLine Line(real lat1, real lon1, real azi12)
const;
361 static const Rhumb& WGS84();
387 real _lat1, _lon1, _azi12, _salp, _calp, _mu1, _psi1;
467 void Position(real s12, real& lat2, real& lon2, real& S12)
const {
468 GenPosition(s12, LATITUDE | LONGITUDE | AREA, lat2, lon2, S12);
475 void Position(real s12, real& lat2, real& lon2)
const {
477 GenPosition(s12, LATITUDE | LONGITUDE, lat2, lon2, t);
508 void GenPosition(
real s12,
unsigned outmask,
545 #if defined(_MSC_VER) 546 # pragma warning (pop) 549 #endif // GEOGRAPHICLIB_RHUMB_HPP
Math::real Flattening() const
#define GEOGRAPHICLIB_EXPORT
void Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi12) const
void Position(real s12, real &lat2, real &lon2, real &S12) const
An accurate representation of angles.
Math::real Latitude() const
#define GEOGRAPHICLIB_RHUMBAREA_ORDER
Math::real Azimuth() const
Math::real Longitude() const
Namespace for GeographicLib.
GeographicLib::Math::real real
void Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi12, real &S12) const
void Direct(real lat1, real lon1, real azi12, real s12, real &lat2, real &lon2) const
Header for the GeographicLib::DAuxLatitude class.
Header for GeographicLib::Constants class.
void Position(real s12, real &lat2, real &lon2) const
Solve of the direct and inverse rhumb problems.
Math::real EquatorialRadius() const
Conversions between auxiliary latitudes.
Find a sequence of points on a single rhumb line.
Math::real EllipsoidArea() const
Math::real Flattening() const
static constexpr int td
degrees per turn
void Direct(real lat1, real lon1, real azi12, real s12, real &lat2, real &lon2, real &S12) const
Math::real EquatorialRadius() const
Divided differences of auxiliary latitudes.