21 if ( m_pMagneticCircle !=
NULL )
23 delete m_pMagneticCircle;
24 m_pMagneticCircle =
NULL;
35 catch ( std::bad_alloc )
37 throw gcnew GeographicErr(
"Failed to allocate memory for a GeographicLib::MagneticCircle" );
43 [System::Runtime::InteropServices::Out]
double% Bx,
44 [System::Runtime::InteropServices::Out]
double% By,
45 [System::Runtime::InteropServices::Out]
double% Bz)
56 [System::Runtime::InteropServices::Out]
double% Bx,
57 [System::Runtime::InteropServices::Out]
double% By,
58 [System::Runtime::InteropServices::Out]
double% Bz,
59 [System::Runtime::InteropServices::Out]
double% Bxt,
60 [System::Runtime::InteropServices::Out]
double% Byt,
61 [System::Runtime::InteropServices::Out]
double% Bzt)
63 double lx, ly, lz, lxt, lyt, lzt;
78 throw gcnew GeographicErr(
"MagneticCircle::MajorRadius failed because the MagneticCircle is not initialized.");
86 throw gcnew GeographicErr(
"MagneticCircle::Flattening failed because the MagneticCircle is not initialized.");
94 throw gcnew GeographicErr(
"MagneticCircle::Latitude failed because the MagneticCircle is not initialized.");
102 throw gcnew GeographicErr(
"MagneticCircle::Height failed because the MagneticCircle is not initialized.");
110 throw gcnew GeographicErr(
"MagneticCircle::Height failed because the MagneticCircle is not initialized.");
Header for NETGeographicLib::NETGeographicLib objects.
.NET wrapper for GeographicLib::MagneticCircle.
Exception class for NETGeographicLib.
Math::real Height() const
Header for GeographicLib::MagneticCircle class.
Geomagnetic field on a circle of latitude.
Math::real MajorRadius() const
const GeographicLib::MagneticCircle * m_pMagneticCircle
Math::real Latitude() const
void Field(double lon, [System::Runtime::InteropServices::Out] double%Bx, [System::Runtime::InteropServices::Out] double%By, [System::Runtime::InteropServices::Out] double%Bz)
MagneticCircle(const GeographicLib::MagneticCircle &c)
Container::iterator get(Container &c, Position position)
Header for NETGeographicLib::MagneticCircle class.
Math::real Flattening() const