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;
76 if ( m_pMagneticCircle->Init() )
77 return m_pMagneticCircle->MajorRadius();
78 throw gcnew GeographicErr(
"MagneticCircle::MajorRadius failed because the MagneticCircle is not initialized.");
84 if ( m_pMagneticCircle->Init() )
85 return m_pMagneticCircle->Flattening();
86 throw gcnew GeographicErr(
"MagneticCircle::Flattening failed because the MagneticCircle is not initialized.");
92 if ( m_pMagneticCircle->Init() )
93 return m_pMagneticCircle->Latitude();
94 throw gcnew GeographicErr(
"MagneticCircle::Latitude failed because the MagneticCircle is not initialized.");
100 if ( m_pMagneticCircle->Init() )
101 return m_pMagneticCircle->Height();
102 throw gcnew GeographicErr(
"MagneticCircle::Height failed because the MagneticCircle is not initialized.");
108 if ( m_pMagneticCircle->Init() )
109 return m_pMagneticCircle->Height();
110 throw gcnew GeographicErr(
"MagneticCircle::Height failed because the MagneticCircle is not initialized.");