add clear to route class

This commit is contained in:
2023-01-02 13:35:45 +01:00
parent 2768562918
commit 4d19068d37
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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);
+1
View File
@@ -131,6 +131,7 @@ class Route {
* @param point
*/
void addPointToRoute(Point point);
void clear();
/**
* @brief Select the first point as target