13 Geocentric earth(Constants::WGS84_a(), Constants::WGS84_f());
17 double lat = 27.99,
lon = 86.93,
h = 8820;
20 cout <<
floor(X / 1000 + 0.5) <<
" " 21 <<
floor(Y / 1000 + 0.5) <<
" " 22 <<
floor(Z / 1000 + 0.5) <<
"\n";
26 double X = 302e3,
Y = 5636e3,
Z = 2980e3;
28 earth.
Reverse(X, Y, Z, lat, lon, h);
29 cout << lat <<
" " << lon <<
" " << h <<
"\n";
32 catch (
const exception&
e) {
33 cerr <<
"Caught exception: " << e.what() <<
"\n";
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
void Forward(real lat, real lon, real h, real &X, real &Y, real &Z) const
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::Geocentric class.
void Reverse(real X, real Y, real Z, real &lat, real &lon, real &h) const