20 const char BADALLOC[] =
"Failed to allocate memory for a GeographicLib::SphericalHarmonic";
25 if ( m_pSphericalHarmonic !=
NULL )
27 delete m_pSphericalHarmonic;
28 m_pSphericalHarmonic =
NULL;
49 m_C =
new std::vector<double>();
50 m_S =
new std::vector<double>();
51 for each (
double x in C )
m_C->push_back(x);
52 for each (
double x
in S )
m_S->push_back(x);
54 *
m_C, *
m_S, N, a, static_cast<unsigned>(norm) );
56 catch (std::bad_alloc)
60 catch (
const std::exception& xcpt )
64 catch ( System::Exception^ sxpt )
73 int N,
int nmx,
int mmx,
78 m_C =
new std::vector<double>();
79 m_S =
new std::vector<double>();
80 for each (
double x in C )
m_C->push_back(x);
81 for each (
double x
in S )
m_S->push_back(x);
83 *
m_C, *
m_S, N, nmx, mmx, a, static_cast<unsigned>(norm) );
85 catch (std::bad_alloc)
89 catch (
const std::exception& xcpt )
93 catch ( System::Exception^ sxpt )
107 double% gradx,
double% grady,
double% gradz)
Header for NETGeographicLib::NETGeographicLib objects.
Header for NETGeographicLib::SphericalHarmonic class.
Exception class for NETGeographicLib.
CircularEngine Circle(real p, real z, bool gradp) const
const GeographicLib::SphericalHarmonic * m_pSphericalHarmonic
.NET wrapper for GeographicLib::SphericalEngine::coeff.
Header for NETGeographicLib::CircularEngine class.
CircularEngine Circle(double p, double z, bool gradp)
std::vector< double > * m_C
Header for NETGeographicLib::SphericalCoefficients class.
const SphericalEngine::coeff & Coefficients() const
SphericalCoefficients Coefficients()
Matrix< Scalar, Dynamic, Dynamic > C
Header for GeographicLib::SphericalHarmonic class.
double HarmonicSum(double x, double y, double z)
std::vector< double > * m_S
SphericalHarmonic(array< double >^C, array< double >^S, int N, double a, Normalization norm)
.NET wrapper for GeographicLib::CircularEngine.
Spherical harmonic series.
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 x
.NET wrapper for GeographicLib::SphericalHarmonic.