Move iterator stuff from polygon to multipoint

This commit is contained in:
tamasmeszaros 2021-04-22 09:44:08 +02:00
parent 3b86cb3a3c
commit ea26581959
2 changed files with 7 additions and 7 deletions

View File

@ -84,6 +84,13 @@ public:
static Points _douglas_peucker(const Points &points, const double tolerance);
static Points visivalingam(const Points& pts, const double& tolerance);
inline auto begin() { return points.begin(); }
inline auto begin() const { return points.begin(); }
inline auto end() { return points.end(); }
inline auto end() const { return points.end(); }
inline auto cbegin() const { return points.begin(); }
inline auto cend() const { return points.end(); }
};
class MultiPoint3

View File

@ -75,13 +75,6 @@ public:
using iterator = Points::iterator;
using const_iterator = Points::const_iterator;
inline auto begin() { return points.begin(); }
inline auto begin() const { return points.begin(); }
inline auto end() { return points.end(); }
inline auto end() const { return points.end(); }
inline auto cbegin() const { return points.begin(); }
inline auto cend() const { return points.end(); }
};
inline bool operator==(const Polygon &lhs, const Polygon &rhs) { return lhs.points == rhs.points; }