8 Rhumb^ rhumb =
gcnew Rhumb(Constants::WGS84::MajorRadius, Constants::WGS84::Flattening,
true);
11 lat1 = 40.640, lon1 = -73.779,
12 lat2 = 1.359, lon2 = 103.989;
14 rhumb->
Inverse(lat1, lon1, lat2, lon2, s12, azi12);
19 int num =
int(Math::Ceiling(s12 / ds0));
22 double ds = s12 / num;
23 for (
int i = 0;
i <= num; ++
i) {
26 Console::WriteLine(
"{0} {1} {2}",
i, lat, lon );
31 Console::WriteLine(String::Format(
"Caught exception: {0}", e->Message));
Exception class for NETGeographicLib.
int main(array< System::String ^> ^)
.NET wrapper for GeographicLib::RhumbLine.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
RhumbLine Line(double lat1, double lon1, double azi12)
.NET wrapper for GeographicLib::Rhumb.
void Position(double s12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% S12)
void Inverse(double lat1, double lon1, double lat2, double lon2, [System::Runtime::InteropServices::Out] double% s12, [System::Runtime::InteropServices::Out] double% azi12, [System::Runtime::InteropServices::Out] double% S12)