14# pragma warning (disable: 5055)
26 {
Reset(lat0, lon0); }
29 _meridian = _earth.
Line(lat0, lon0, real(0),
40 real& azi, real& rk)
const {
44 real sig12, s12, azi1, azi2;
45 sig12 = _earth.
Inverse(lat, -fabs(dlon), lat, fabs(dlon), s12, azi1, azi2);
69 t, t, t, t, t, t, rk, t);
74 sbet1 = lat >=0 ? calp0 : -calp0,
75 cbet1 = fabs(dlon) <=
Math::qd ? fabs(salp0) : -fabs(salp0),
76 sbet01 = sbet1 * _cbet0 - cbet1 * _sbet0,
77 cbet01 = cbet1 * _cbet0 + sbet1 * _sbet0,
81 t, t, t, y, t, t, t, t);
85 real& azi, real& rk)
const {
90 _meridian.
Position(y, lat1, lon1, azi0);
91 _earth.
Direct(lat1, lon1, azi0 +
Math::qd, x, lat, lon, azi, rk, t);
Header for GeographicLib::CassiniSoldner class.
Math::real LatitudeOrigin() const
CassiniSoldner(const Geodesic &earth=Geodesic::WGS84())
Math::real LongitudeOrigin() const
void Reverse(real x, real y, real &lat, real &lon, real &azi, real &rk) const
void Forward(real lat, real lon, real &x, real &y, real &azi, real &rk) const
void Reset(real lat0, real lon0)
Math::real EquatorialAzimuth() const
Math::real Position(real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
Math::real GenPosition(bool arcmode, real s12_a12, unsigned outmask, real &lat2, real &lon2, real &azi2, real &s12, real &m12, real &M12, real &M21, real &S12) const
Math::real Flattening() const
Math::real Direct(real lat1, real lon1, real azi1, real s12, real &lat2, real &lon2, real &azi2, real &m12, real &M12, real &M21, real &S12) const
GeodesicLine Line(real lat1, real lon1, real azi1, unsigned caps=ALL) const
Math::real Inverse(real lat1, real lon1, real lat2, real lon2, real &s12, real &azi1, real &azi2, real &m12, real &M12, real &M21, real &S12) const
static void sincosd(T x, T &sinx, T &cosx)
static void norm(T &x, T &y)
static T AngNormalize(T x)
static T AngDiff(T x, T y, T &e)
@ qd
degrees per quarter turn
Namespace for GeographicLib.