14 Geocentric earth(Constants::WGS84_a(), Constants::WGS84_f());
16 const double lat0 = 48 + 50/60.0,
lon0 = 2 + 20/60.0;
20 double lat = 50.9,
lon = 1.8,
h = 0;
23 cout << x <<
" " << y <<
" " << z <<
"\n";
27 double x = -38e3,
y = 230e3,
z = -4e3;
29 proj.
Reverse(x, y, z, lat, lon, h);
30 cout << lat <<
" " << lon <<
" " << h <<
"\n";
33 catch (
const exception&
e) {
34 cerr <<
"Caught exception: " << e.what() <<
"\n";
Header for GeographicLib::LocalCartesian class.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::Geocentric class.
Local cartesian coordinates.
void Forward(real lat, real lon, real h, real &x, real &y, real &z) const
void Reverse(real x, real y, real z, real &lat, real &lon, real &h) const
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