X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Froute.hxx;h=cd2114f6d55ffe8590db50aa30d5cd50d097ce0a;hb=37591d0ac9c316f107a3c38043edd3a7f89b4892;hp=b0375d15c980c68d00b76ce255bf5ee4516d6dd4;hpb=7cbb3a10edf9432292dce65649c1462d61503508;p=flightgear.git diff --git a/src/Navaids/route.hxx b/src/Navaids/route.hxx index b0375d15c..cd2114f6d 100644 --- a/src/Navaids/route.hxx +++ b/src/Navaids/route.hxx @@ -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 WayptVec;