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:
parent
075bf675fa
commit
8a1e8f97a9
3 changed files with 23 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue