]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/route.hxx
Merge branch 'next' into durk-atc
[flightgear.git] / src / Navaids / route.hxx
index b0375d15c980c68d00b76ce255bf5ee4516d6dd4..cd2114f6d55ffe8590db50aa30d5cd50d097ce0a 100644 (file)
@@ -156,6 +156,12 @@ public:
   bool matches(const SGGeod& aPos) const;
   
   virtual std::string type() const = 0;
+  
+  /**
+   * Magentic variation at/in the vicinity of the waypoint.
+   * For some waypoint types this will always return 0.
+   */
+  virtual double magvarDeg() const;
 protected:
   friend class NavdataVisitor;
   
@@ -187,7 +193,7 @@ private:
 
        Route* _owner;
        unsigned short _flags;
-       
+  mutable double _magVarDeg; 
 };
 
 typedef std::vector<WayptRef> WayptVec;