added more functions for capture route

This commit is contained in:
2022-02-01 18:26:57 +01:00
parent 44be2b2b77
commit 894f3439bd
12 changed files with 59 additions and 15 deletions
+6 -3
View File
@@ -15,17 +15,20 @@
#include <cstdint>
#include <list>
class Point{
public:
Point(double lat, double lon) {this->lat = lat; this->lon = lon;}
Point(double lat, double lon) { this->lat = lat; this->lon = lon; }
Point(){ this->lat = 0; this->lon = 0; }
double lat = 0;
double lon = 0;
bool operator==(const Point& rhs) const {
return this->lat == rhs.lat && this->lon == rhs.lon;
}
bool isValid() const { return this->lat + this->lon; }
};
class Route {