Go to the documentation of this file.    1 using namespace System;
 
   10             lat1 = 40.640, lon1 = -73.779, 
 
   11             lat2 =  1.359, lon2 = 103.989; 
 
   12         double s12, azi1, azi2,
 
   13             a12 = geod->
Inverse(lat1, lon1, lat2, lon2, s12, azi1, azi2);
 
   18         int num = 
int(Math::Ceiling(s12 / ds0)); 
 
   21             double ds = s12 / num;
 
   22             for (
int i = 0; 
i <= num; ++
i) {
 
   25                 Console::WriteLine( String::Format( 
"i: {0} Latitude: {1} Longitude: {2}", 
i, 
lat, 
lon ));
 
   30             double da = a12 / num;
 
   31             for (
int i = 0; 
i <= num; ++
i) {
 
   34                 Console::WriteLine( String::Format( 
"i: {0} Latitude: {1} Longitude: {2}", 
i, 
lat, 
lon ));
 
   39         Console::WriteLine(String::Format(
"Caught exception: {0}", 
e->Message));
 
 
double Position(double s12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [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)
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)
.NET wrapper for GeographicLib::GeodesicLine.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Exception class for NETGeographicLib.
.NET wrapper for GeographicLib::Geodesic.
int main(array< System::String ^> ^)
void ArcPosition(double a12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% azi2, [System::Runtime::InteropServices::Out] double% s12, [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 Wed May 28 2025 03:01:16