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;
91 void operator()(real lon, real& Bx, real& By, real& Bz)
const {
93 Field(lon,
false, Bx, By, Bz, dummy, dummy, dummy);
109 void operator()(real lon, real& Bx, real& By, real& Bz,
110 real& Bxt, real& Byt, real& Bzt)
const {
111 Field(lon,
true, Bx, By, Bz, Bxt, Byt, Bzt);
121 bool Init()
const {
return _a > 0; }
156 #endif // GEOGRAPHICLIB_MAGNETICCIRCLE_HPP