]> git.mxchange.org Git - simgear.git/blobdiff - simgear/route/route.hxx
FG_ to SG_ namespace changes.
[simgear.git] / simgear / route / route.hxx
index ead338d42de9cc4bb3b14c188772cddae0907de2..6d2da1f765f03c357a2033cf46a89ba242387d47 100644 (file)
 #include STL_STRING
 #include <vector>
 
-FG_USING_STD(string);
-FG_USING_STD(vector);
+SG_USING_STD(string);
+SG_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;
 };