8 double lat = 27.99,
lon0 = 86.93,
h = 8820,
t = 2012;
12 for (
int i = -5;
i <= 5; ++
i) {
15 mag->
Field(
t, lat, lon,
h, Bx, By, Bz);
16 Console::WriteLine(String::Format(
"{0} {1} {2} {3}", lon, Bx, By, Bz));
23 for (
int i = -5;
i <= 5; ++
i) {
26 circ->
Field(lon, Bx, By, Bz);
27 Console::WriteLine(String::Format(
"{0} {1} {2} {3}", lon, Bx, By, Bz));
32 Console::WriteLine(String::Format(
"Caught exception: {0}", e->Message));
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)
MagneticCircle Circle(double t, double lat, double h)
.NET wrapper for GeographicLib::MagneticCircle.
Exception class for NETGeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
int main(array< System::String^>^)
void Field(double lon, [System::Runtime::InteropServices::Out] double%Bx, [System::Runtime::InteropServices::Out] double%By, [System::Runtime::InteropServices::Out] double%Bz)
.NET wrapper for GeographicLib::MagneticModel.