23 real Wres =
W(slam, clam, gx, gy, gz);
33 real Tres = InternalT(slam, clam, deltax, deltay, deltaz,
true,
true);
40 if ((_caps & GEOID_HEIGHT) != GEOID_HEIGHT)
44 real T = InternalT(slam, clam, dummy, dummy, dummy,
false,
false);
45 real correction = _corrmult * _correction(slam, clam);
46 return T/_gamma0 + correction;
51 if ((_caps & SPHERICAL_ANOMALY) != SPHERICAL_ANOMALY) {
58 deltax, deltay, deltaz,
59 T = InternalT(slam, clam, deltax, deltay, deltaz,
true,
false);
65 Dg01 = - deltaz - 2 * T * _invR;
72 real Wres =
V(slam, clam, gX, gY, gZ) + _frot * _Px / 2;
80 if ((_caps &
GRAVITY) != GRAVITY) {
85 Vres = _gravitational(slam, clam, GX, GY, GZ),
86 f = _GMmodel / _amodel;
96 bool gradp,
bool correct)
const {
98 if ((_caps & DISTURBANCE) != DISTURBANCE) {
103 if ((_caps & DISTURBING_POTENTIAL) != DISTURBING_POTENTIAL)
109 ? _disturbing(slam, clam, deltaX, deltaY, deltaZ)
110 : _disturbing(slam, clam));
111 T = (T / _amodel - (correct ? _dzonal0 : 0) * _invR) * _GMmodel;
113 real f = _GMmodel / _amodel;
118 real r3 = _GMmodel * _dzonal0 * _invR * _invR * _invR;
119 deltaX += _Px * clam *
r3;
120 deltaY += _Px * slam *
r3;
Math::real V(real slam, real clam, real &gX, real &gY, real &gZ) const
Matrix< RealScalar, Dynamic, Dynamic > M
static void sincosd(T x, T &sinx, T &cosx)
Math::real W(real slam, real clam, real &gX, real &gY, real &gZ) const
Eigen::Triplet< double > T
Math::real Gravity(real lon, real &gx, real &gy, real &gz) const
Math::real Disturbance(real lon, real &deltax, real &deltay, real &deltaz) const
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Namespace for GeographicLib.
void SphericalAnomaly(real lon, real &Dg01, real &xi, real &eta) const
Header for GeographicLib::Geocentric class.
static const size_t dim2_
static void Unrotate(real M[dim2_], real X, real Y, real Z, real &x, real &y, real &z)
static void Rotation(real sphi, real cphi, real slam, real clam, real M[dim2_])
Math::real InternalT(real slam, real clam, real &deltaX, real &deltaY, real &deltaZ, bool gradp, bool correct) const
Header for GeographicLib::GravityCircle class.
Math::real GeoidHeight(real lon) const