10 #if !defined(GEOGRAPHICLIB_MAGNETICCIRCLE_HPP)
11 #define GEOGRAPHICLIB_MAGNETICCIRCLE_HPP 1
17 namespace GeographicLib {
41 real _a, _f, _lat, _h, _t, _cphi, _sphi, _t1, _dt0;
46 real cphi, real sphi, real t1, real dt0,
58 , _interpolate(interpolate)
63 void Field(real lon,
bool diffp,
64 real& Bx, real& By, real& Bz,
65 real& Bxt, real& Byt, real& Bzt)
const throw();
91 void operator()(real lon, real& Bx, real& By, real& Bz)
const throw() {
93 Field(lon,
false, Bx, By, Bz, dummy, dummy, dummy);
110 real& Bxt, real& Byt, real& Bzt)
const throw() {
111 Field(lon,
true, Bx, By, Bz, Bxt, Byt, Bzt);
121 bool Init()
const throw() {
return _a > 0; }
128 {
return Init() ? _a : Math::NaN<real>(); }
134 {
return Init() ? _f : Math::NaN<real>(); }
139 {
return Init() ? _lat : Math::NaN<real>(); }
144 {
return Init() ? _h : Math::NaN<real>(); }
149 {
return Init() ? _t : Math::NaN<real>(); }
156 #endif // GEOGRAPHICLIB_MAGNETICCIRCLE_HPP
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Math::real Height() const
void operator()(real lon, real &Bx, real &By, real &Bz) const
Model of the earth's magnetic field.
Geomagnetic field on a circle of latitude.
Math::real MajorRadius() const
Math::real Latitude() const
Header for GeographicLib::CircularEngine class.
Spherical harmonic sums for a circle.
void operator()(real lon, real &Bx, real &By, real &Bz, real &Bxt, real &Byt, real &Bzt) const
Header for GeographicLib::Constants class.
Math::real Flattening() const