#include <mobility/ParallelogramWaypointRange.h>


Public Member Functions | |
| ParallelogramWaypointRange (const Position &a, const Position &b, const Position &c, const Position &d) | |
| Constructor. | |
| virtual | ~ParallelogramWaypointRange () |
| Virtual destructor. | |
| Position | next (const Position &p) |
| Obtain the next waypoint. | |
Definition at line 45 of file ParallelogramWaypointRange.h.
| ParallelogramWaypointRange::ParallelogramWaypointRange | ( | const Position & | a, | |
| const Position & | b, | |||
| const Position & | c, | |||
| const Position & | d | |||
| ) |
Constructor.
Points a and b define one side, points a and c define a second side, and points a and d define a third side. The parallelogram is uniquely defined by these four (ordered) points.
| a | The common point of the three sides | |
| b | The end point of side one | |
| c | The end point of side two | |
| d | The end point of side three; for a two-dimensional region, this should be the same as a |
Definition at line 37 of file ParallelogramWaypointRange.cc.
Obtain the next waypoint.
For many derived classes, this will be independent of the current position. Some might have a requirement that, in a complex domain, the new waypoint is reachable from the previous one by a straight-line path.
| p | The previous waypoint |
Implements Mobility::WaypointRange.
Definition at line 53 of file ParallelogramWaypointRange.cc.
References prng().
1.5.4