Go to the documentation of this file.
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)
.NET wrapper for GeographicLib::SphericalHarmonic.
Header for NETGeographicLib::SphericalCoefficients class.
Header for NETGeographicLib::SphericalHarmonic class.
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
const GeographicLib::SphericalHarmonic * m_pSphericalHarmonic
Header for NETGeographicLib::CircularEngine class.
double HarmonicSum(double x, double y, double z)
Exception class for NETGeographicLib.
.NET wrapper for GeographicLib::SphericalEngine::coeff.
Spherical harmonic series.
CircularEngine Circle(double p, double z, bool gradp)
SphericalHarmonic(array< double >^ C, array< double >^ S, int N, double a, Normalization norm)
std::vector< double > * m_S
Header for NETGeographicLib::NETGeographicLib objects.
std::ofstream out("Result.txt")
.NET wrapper for GeographicLib::CircularEngine.
Matrix< Scalar, Dynamic, Dynamic > C
const SphericalEngine::coeff & Coefficients() const
std::vector< double > * m_C
CircularEngine Circle(real p, real z, bool gradp) const
SphericalCoefficients Coefficients()
Header for GeographicLib::SphericalHarmonic class.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:59