]> git.mxchange.org Git - simgear.git/blobdiff - simgear/magvar/magvar.hxx
Merge branch 'fredb/effect-stuff'
[simgear.git] / simgear / magvar / magvar.hxx
index c2e80bc4a5194b17480ddf624b03292d3abeb674..6a97e5ea7719eb3eb137910c8b6641ae82de96d4 100644 (file)
@@ -33,6 +33,9 @@
 #endif
 
 
+// forward decls
+class SGGeod;
+
 /**
  * Magnetic variation wrapper class.
  *
@@ -78,6 +81,11 @@ public:
      */
     void update( double lon, double lat, double alt_m, double jd );
 
+    /**
+     * overloaded variant taking an SGGeod to specify position
+     */
+    void update( const SGGeod& geod, double jd );
+
     /** @return the current magnetic variation in radians. */
     double get_magvar() const { return magvar; }