8 Constants::WGS84::Flattening);
12 double lat = 27.99,
lon = 86.93,
h = 8820;
15 Console::WriteLine( String::Format(
"{0} {1} {2}",
16 Math::Floor(X / 1000 + 0.5),
17 Math::Floor(Y / 1000 + 0.5),
18 Math::Floor(Z / 1000 + 0.5) ) );
22 double X = 302e3,
Y = 5636e3,
Z = 2980e3;
24 earth->
Reverse(X, Y, Z, lat, lon, h);
25 Console::WriteLine(String::Format(
"{0} {1} {2}", lat, lon, h));
29 Console::WriteLine( String::Format(
"Caught exception: {0}", e->Message ) );
int main(array< System::String^>^)
Exception class for NETGeographicLib.
.NET wrapper for GeographicLib::Geocentric.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void Forward(double lat, double lon, double h, [System::Runtime::InteropServices::Out] double%X, [System::Runtime::InteropServices::Out] double%Y, [System::Runtime::InteropServices::Out] double%Z)
void Reverse(double X, double Y, double Z, [System::Runtime::InteropServices::Out] double%lat, [System::Runtime::InteropServices::Out] double%lon, [System::Runtime::InteropServices::Out] double%h)