new helper methods

particle traps
This commit is contained in:
2016-10-01 10:22:14 +02:00
parent 4a0442f511
commit 729340031d
2 changed files with 6 additions and 1 deletions

View File

@@ -36,6 +36,11 @@ public:
}
/** returns true if the bbox is not yet configured */
const bool isInvalid() const {
return p1.x == MAX || p1.y == MAX || p2.x == MIN || p2.y == MIN;
}
/** get the bbox's minimum */
const Point2& getMin() const {return p1;}