#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 {
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;
};