]> git.mxchange.org Git - simgear.git/blobdiff - simgear/route/route.hxx
Fix a build order problem.
[simgear.git] / simgear / route / route.hxx
index ead338d42de9cc4bb3b14c188772cddae0907de2..cd241148d054ec93e1dd13cccd2bf1ba61671a8f 100644 (file)
@@ -42,7 +42,7 @@
 FG_USING_STD(string);
 FG_USING_STD(vector);
 
-#include "waypoint.hxx"
+#include <simgear/route/waypoint.hxx>
 
 
 class SGRoute {
@@ -127,6 +127,12 @@ public:
            route.erase( route.begin() );
        }
     }
+
+    // Calculate perpendicular distance from the current route segment
+    // This routine assumes all points are laying on a flat plane and
+    // ignores the altitude (or Z) dimension.  For best results, use
+    // with CARTESIAN way points.
+    double distance_off_route( double x, double y ) const;
 };