add clear to route class
This commit is contained in:
@@ -97,6 +97,10 @@ void Route::addPointToRoute(Point point) {
|
||||
this->points.push_back(point);
|
||||
}
|
||||
|
||||
void Route::clear() {
|
||||
this->points.clear();
|
||||
}
|
||||
|
||||
Point Route::startRoute() {
|
||||
if (this->points.size() < 1)
|
||||
return Point(0, 0);
|
||||
|
||||
@@ -131,6 +131,7 @@ class Route {
|
||||
* @param point
|
||||
*/
|
||||
void addPointToRoute(Point point);
|
||||
void clear();
|
||||
|
||||
/**
|
||||
* @brief Select the first point as target
|
||||
|
||||
Reference in New Issue
Block a user