dotnet/examples/ManagedCPP/example-Geodesic-small.cpp
Go to the documentation of this file.
1 using namespace System;
2 using namespace NETGeographicLib;
3 
4 int main() {
5  Geodesic^ geod = gcnew Geodesic();
6  // Distance from JFK to LHR
7  double
8  lat1 = 40.6, lon1 = -73.8, // JFK Airport
9  lat2 = 51.6, lon2 = -0.5; // LHR Airport
10  double s12;
11  geod->Inverse(lat1, lon1, lat2, lon2, s12);
12  Console::WriteLine( s12 / 1000 + " km" );
13  return 0;
14 }
.NET wrapper for GeographicLib::Geodesic.
Definition: Geodesic.h:170
double Inverse(double lat1, double lon1, double lat2, double lon2, [System::Runtime::InteropServices::Out] double%s12, [System::Runtime::InteropServices::Out] double%azi1, [System::Runtime::InteropServices::Out] double%azi2, [System::Runtime::InteropServices::Out] double%m12, [System::Runtime::InteropServices::Out] double%M12, [System::Runtime::InteropServices::Out] double%M21, [System::Runtime::InteropServices::Out] double%S12)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:02