]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/routePath.hxx
Fix flight-plan course and distance computations.
[flightgear.git] / src / Navaids / routePath.hxx
index cd35642a831a26fd96377aedadfbcb63cd825073..ddc15693ed588df8e91779ddb2a1d56f9d384352 100644 (file)
@@ -29,6 +29,7 @@
 namespace flightgear
 {
   class Hold;
+  class FlightPlan;
 }
 
 typedef std::vector<SGGeod> SGGeodVec;
@@ -43,6 +44,9 @@ public:
   
   SGGeod positionForIndex(int index) const;
   
+  double computeDistanceForIndex(int index) const;
+  double computeTrackForIndex(int index) const;
+
 private:
   void commonInit();
   
@@ -52,7 +56,8 @@ private:
   
   bool computedPositionForIndex(int index, SGGeod& pos) const;
   double computeAltitudeForIndex(int index) const;
-  double computeTrackForIndex(int index) const;
+  
+  void interpolateGreatCircle(const SGGeod& aFrom, const SGGeod& aTo, SGGeodVec& r) const;
   
   /**
    * Find the distance (in Nm) to climb/descend a height in feet