Minor refactoring of BoundingBox: change Eigen point accessor from

indices to .x(), .y(), .z()
Added Polyline vector accessors.
Polished Point hash code.
This commit is contained in:
Vojtech Bubnik 2022-07-27 08:53:48 +02:00
parent 075bf675fa
commit 8a1e8f97a9
3 changed files with 23 additions and 16 deletions

View file

@ -61,6 +61,9 @@ public:
}
}
Point& operator[](Points::size_type idx) { return this->points[idx]; }
const Point& operator[](Points::size_type idx) const { return this->points[idx]; }
const Point& last_point() const override { return this->points.back(); }
const Point& leftmost_point() const;
Lines lines() const override;