dotnet/examples/ManagedCPP/example-NormalGravity.cpp
Go to the documentation of this file.
1 using namespace System;
2 using namespace NETGeographicLib;
3 
5 {
6  try {
7  NormalGravity^ grav = gcnew NormalGravity(NormalGravity::StandardModels::WGS84);
8  double lat = 27.99, h = 8820; // Mt Everest
9  double gammay, gammaz;
10  grav->Gravity(lat, h, gammay, gammaz);
11  Console::WriteLine(String::Format("{0} {1}", gammay, gammaz));
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.
int main(array< System::String^>^)
Definition: numpy.h:543
double Gravity(double lat, double h, [System::Runtime::InteropServices::Out] double%gammay, [System::Runtime::InteropServices::Out] double%gammaz)
.NET wrapper for GeographicLib::NormalGravity.
Definition: NormalGravity.h:71
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const double h


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