void SGMagVar::update( const SGGeod& geod, double jd ) {
- update(geod.getLongitudeDeg(), geod.getLatitudeDeg(),
+ update(geod.getLongitudeRad(), geod.getLatitudeRad(),
geod.getElevationM(), jd);
}
double field[6];
return calc_magvar( lat, lon, alt_m / 1000.0, (long)jd, field );
}
+
+double sgGetMagVar( const SGGeod& pos, double jd )
+{
+ return sgGetMagVar(pos.getLongitudeRad(), pos.getLatitudeRad(),
+ pos.getElevationM(), jd);
+}
+
*/
double sgGetMagVar( double lon, double lat, double alt_m, double jd );
+/**
+ * overload version of the above to take a SGGeod
+ */
+double sgGetMagVar( const SGGeod& pos, double jd );
#endif // _MAGVAR_HXX