navlib::ReversePath Class Reference

A path that moves along the same waypoints as a given path but in the opposite direction. More...

#include <path.h>

Inheritance diagram for navlib::ReversePath:

navlib::Path

List of all members.

Public Member Functions

 ReversePath (Path *path)
Pathcopy ()
 Returns a pointer that is a new instance of this object.
PathPoint getPathPoint (double d) const
 Returns the waypoint at distance d.
std::vector< PathPointgetPathPoints () const
 Returns a series of waypoints that describe the path.
double getLength () const
 Returns the total path length.
bool isReverse (double d) const
 Returns true if the path is moving in reverse and true otherwise.


Detailed Description

A path that moves along the same waypoints as a given path but in the opposite direction.


Member Function Documentation

PathPoint ReversePath::getPathPoint ( double  d  )  const [virtual]

Returns the waypoint at distance d.

Returns the initial waypoint if d is less than zero and the final waypoint if d greater than the path length.

Parameters:
length along the path

Implements navlib::Path.

References navlib::Path::getPathPoint().


The documentation for this class was generated from the following files:

Generated on Mon Nov 3 20:33:35 2008 for navlib by  doxygen 1.5.5