13 NormalGravity grav(Constants::WGS84_a(), Constants::WGS84_GM(),
14 Constants::WGS84_omega(), Constants::WGS84_f());
16 double lat = 27.99,
h = 8820;
17 double gammay, gammaz;
18 grav.
Gravity(lat,
h, gammay, gammaz);
19 cout << gammay <<
" " << gammaz <<
"\n";
21 catch (
const exception&
e) {
22 cerr <<
"Caught exception: " << e.what() <<
"\n";
Math::real Gravity(real lat, real h, real &gammay, real &gammaz) const
The normal gravity of the earth.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::NormalGravity class.
Header for GeographicLib::Constants class.