dotnet/examples/ManagedCPP/example-GravityModel.cpp
Go to the documentation of this file.
1 using namespace System;
2 using namespace NETGeographicLib;
3 
5 {
6  try {
7  GravityModel^ grav = gcnew GravityModel("egm96","");
8  double lat = 27.99, lon = 86.93, h = 8820; // Mt Everest
9  double gx, gy, gz;
10  grav->Gravity(lat, lon, h, gx, gy, gz);
11  Console::WriteLine(String::Format("{0} {1} {2}", gx, gy, gz));
12  }
13  catch (GeographicErr^ e) {
14  Console::WriteLine(String::Format("Caught exception: {0}", e->Message));
15  return -1;
16  }
17  return 0;
18 }
static const double lat
Exception class for NETGeographicLib.
Definition: numpy.h:543
int main(array< System::String^>^)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const double h
double Gravity(double lat, double lon, double h, [System::Runtime::InteropServices::Out] double%gx, [System::Runtime::InteropServices::Out] double%gy, [System::Runtime::InteropServices::Out] double%gz)
static const double lon
.NET wrapper for GeographicLib::GravityModel.
Definition: GravityModel.h:83


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