10 #if !defined(GEOGRAPHICLIB_NORMALGRAVITY_HPP) 11 #define GEOGRAPHICLIB_NORMALGRAVITY_HPP 1 81 static const int maxit_ = 20;
84 real _a, _GM, _omega, _f, _J2,
_omega2, _aomega2;
85 real _e2, _ep2, _b, _E,
_U0, _gammae, _gammap, _Q0, _k, _fstar;
100 static real atan7series(real
x);
101 static real atan5series(real x);
102 static real Qf(real x,
bool alt);
103 static real Hf(real x,
bool alt);
104 static real QH3f(real x,
bool alt);
105 real Jn(
int n)
const;
106 void Initialize(real
a, real
GM, real omega, real f_J2,
bool geometricp);
143 bool geometricp =
true);
219 Math::real Gravity(real lat, real
h, real& gammay, real& gammaz)
243 real& gammaX, real& gammaY, real& gammaZ)
const;
266 real& GammaX, real& GammaY, real& GammaZ)
const;
284 Math::real Phi(real X, real Y, real& fX, real& fY)
const;
293 bool Init()
const {
return _a > 0; }
323 {
return Init() ? ( n == 2 ? _J2 : Jn(n)) :
Math::NaN(); }
330 {
return Init() ? _omega :
Math::NaN(); }
344 {
return Init() ? _gammae :
Math::NaN(); }
351 {
return Init() ? _gammap :
Math::NaN(); }
358 {
return Init() ? _fstar :
Math::NaN(); }
401 static Math::real J2ToFlattening(real a, real GM, real omega, real J2);
418 static Math::real FlatteningToJ2(real a, real GM, real omega, real f);
423 #endif // GEOGRAPHICLIB_NORMALGRAVITY_HPP
#define GEOGRAPHICLIB_EXPORT
Math::real PolarGravity() const
const Vector3 V0(0, 0, 0)
The normal gravity of the earth.
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
Math::real MajorRadius() const
Math::real Flattening() const
Math::real EquatorialGravity() const
const Geocentric & Earth() const
Math::real AngularVelocity() const
Math::real SurfacePotential() const
EIGEN_DEVICE_FUNC const AtanReturnType atan() const
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
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.
#define GEOGRAPHICLIB_DEPRECATED(msg)
static real atanzz(real x, bool alt)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_DEVICE_FUNC const AsinReturnType asin() const
Math::real GravityFlattening() const
Math::real MassConstant() const