10 #if !defined(GEOGRAPHICLIB_NORMALGRAVITY_HPP)
11 #define GEOGRAPHICLIB_NORMALGRAVITY_HPP 1
62 static const int maxit_ = 10;
65 real _a, _GM, _omega, _f, _J2, _omega2, _aomega2;
66 real _e2, _ep2, _b, _E, _U0, _gammae, _gammap, _q0, _m, _k, _fstar;
69 static real atan5(real x);
71 static real atan7(real x);
72 static real qf(real ep2);
73 static real dq(real ep2);
74 static real qpf(real ep2);
154 Math::real Gravity(real lat, real h, real& gammay, real& gammaz)
178 real& gammaX, real& gammaY, real& gammaZ)
const;
202 real& GammaX, real& GammaY, real& GammaZ)
const;
220 Math::real Phi(real X, real Y, real& fX, real& fY)
const;
229 bool Init()
const {
return _a > 0; }
259 {
return Init() ? ( n == 2 ? _J2 : Jn(n)) :
Math::NaN(); }
266 {
return Init() ? _omega :
Math::NaN(); }
280 {
return Init() ? _gammae :
Math::NaN(); }
287 {
return Init() ? _gammap :
Math::NaN(); }
294 {
return Init() ? _fstar :
Math::NaN(); }
331 static Math::real J2ToFlattening(real a, real GM, real omega, real J2);
345 static Math::real FlatteningToJ2(real a, real GM, real omega, real f);
350 #endif // GEOGRAPHICLIB_NORMALGRAVITY_HPP
#define GEOGRAPHICLIB_EXPORT
Math::real PolarGravity() const
GeographicLib::Math::real real
The normal gravity of the earth.
Math::real MajorRadius() const
Math::real Flattening() const
Math::real EquatorialGravity() const
const Geocentric & Earth() const
Math::real AngularVelocity() const
Math::real SurfacePotential() const
Namespace for GeographicLib.
Math::real DynamicalFormFactor(int n=2) const
Header for GeographicLib::Geocentric class.
Model of the earth's gravity field.
Header for GeographicLib::Constants class.
Math::real GravityFlattening() const
Math::real MassConstant() const