#include <mobility/RectangularAlignedWaypointRange.h>


Public Member Functions | |
| RectangularAlignedWaypointRange (const Position &ll, const Position &ur) | |
| Constructor. | |
| virtual | ~RectangularAlignedWaypointRange () |
| Virtual destructor. | |
| Position | next (const Position &p) |
| Obtain the next waypoint. | |
Definition at line 45 of file RectangularAlignedWaypointRange.h.
| RectangularAlignedWaypointRange::RectangularAlignedWaypointRange | ( | const Position & | ll, | |
| const Position & | ur | |||
| ) |
Constructor.
| ll | The lower-left corner of the area | |
| ur | The upper-right corner of the area |
Definition at line 37 of file RectangularAlignedWaypointRange.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 50 of file RectangularAlignedWaypointRange.cc.
References prng(), Mobility::Position::x(), Mobility::Position::y(), and Mobility::Position::z().
1.5.4