dotnet/examples/ManagedCPP/example-MagneticModel.cpp
Go to the documentation of this file.
1 using namespace System;
2 using namespace NETGeographicLib;
3 
5 {
6  try {
7  MagneticModel^ mag = gcnew MagneticModel("wmm2010","");
8  double lat = 27.99, lon = 86.93, h = 8820, t = 2012; // Mt Everest
9  double Bx, By, Bz;
10  mag->Field(t, lat,lon, h, Bx, By, Bz);
11  double H, F, D, I;
12  MagneticModel::FieldComponents(Bx, By, Bz, H, F, D, I);
13  Console::WriteLine(String::Format("{0} {1} {2} {3}", H, F, D, I));
14  }
15  catch (GeographicErr^ e) {
16  Console::WriteLine(String::Format("Caught exception: {0}", e->Message));
17  return -1;
18  }
19  return 0;
20 }
H
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
Definition: gnuplot_common_settings.hh:74
D
MatrixXcd D
Definition: EigenSolver_EigenSolver_MatrixType.cpp:14
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
h
const double h
Definition: testSimpleHelicopter.cpp:19
NETGeographicLib::GeographicErr
Exception class for NETGeographicLib.
Definition: NETGeographicLib.h:132
main
int main(array< System::String ^> ^)
Definition: dotnet/examples/ManagedCPP/example-MagneticModel.cpp:4
I
#define I
Definition: main.h:112
NETGeographicLib::MagneticModel
.NET wrapper for GeographicLib::MagneticModel.
Definition: MagneticModel.h:63
gtsam::symbol_shorthand::F
Key F(std::uint64_t j)
Definition: inference/Symbol.h:153
array
Definition: numpy.h:821
lon
static const double lon
Definition: testGeographicLib.cpp:34
align_3::t
Point2 t(10, 10)
NETGeographicLib
Definition: Accumulator.h:13
NETGeographicLib::MagneticModel::Field
void Field(double t, double lat, double lon, double h, [System::Runtime::InteropServices::Out] double% Bx, [System::Runtime::InteropServices::Out] double% By, [System::Runtime::InteropServices::Out] double% Bz)
Definition: dotnet/NETGeographicLib/MagneticModel.cpp:88
lat
static const double lat
Definition: testGeographicLib.cpp:34


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:31