10 #if !defined(GEOGRAPHICLIB_CIRCULARENGINE_HPP) 11 #define GEOGRAPHICLIB_CIRCULARENGINE_HPP 1 19 # pragma warning (push) 20 # pragma warning (disable: 4251) 63 std::vector<real> _wc, _ws, _wrc, _wrs, _wtc,
_wts;
67 real& gradx, real& grady, real& gradz)
const;
71 real
a, real r, real u, real
t)
79 , _wc(
std::vector<real>(_M + 1, 0))
80 , _ws(
std::vector<real>(_M + 1, 0))
81 , _wrc(
std::vector<real>(_gradp ? _M + 1 : 0, 0))
82 , _wrs(
std::vector<real>(_gradp ? _M + 1 : 0, 0))
83 , _wtc(
std::vector<real>(_gradp ? _M + 1 : 0, 0))
84 , _wts(
std::vector<real>(_gradp ? _M + 1 : 0, 0))
92 { _wc[
m] = wc; _ws[
m] = ws; }
95 real wrc, real wrs, real wtc, real wts) {
96 _wc[
m] = wc; _ws[
m] = ws;
98 _wrc[
m] = wrc; _wrs[
m] = wrs;
99 _wtc[
m] = wtc; _wts[
m] = wts;
130 return Value(
false, sinlon, coslon, dummy, dummy, dummy);
142 return (*
this)(sinlon, coslon);
163 real& gradx, real& grady, real& gradz)
const {
164 return Value(
true, sinlon, coslon, gradx, grady, gradz);
182 real& gradx, real& grady, real& gradz)
const {
185 return (*
this)(sinlon, coslon, gradx, grady, gradz);
191 #if defined(_MSC_VER) 192 # pragma warning (pop) 195 #endif // GEOGRAPHICLIB_CIRCULARENGINE_HPP
Matrix< RealScalar, Dynamic, Dynamic > M
#define GEOGRAPHICLIB_EXPORT
The evaluation engine for SphericalHarmonic.
static void sincosd(T x, T &sinx, T &cosx)
Math::real operator()(real sinlon, real coslon) const
void SetCoeff(int m, real wc, real ws, real wrc, real wrs, real wtc, real wts)
Namespace for GeographicLib.
void SetCoeff(int m, real wc, real ws)
Spherical harmonic sums for a circle.
Header for GeographicLib::Constants class.
Math::real operator()(real lon, real &gradx, real &grady, real &gradz) const
Math::real operator()(real sinlon, real coslon, real &gradx, real &grady, real &gradz) const
CircularEngine(int M, bool gradp, unsigned norm, real a, real r, real u, real t)
Header for GeographicLib::SphericalEngine class.
Math::real operator()(real lon) const