added more functions for capture route
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user