added missing code changes
started working on refactoring of sensors new test-cases
This commit is contained in:
11
geo/BBox3.h
11
geo/BBox3.h
@@ -60,6 +60,17 @@ public:
|
||||
p2 -= p; // decrease maximum
|
||||
}
|
||||
|
||||
/** grow the bbox by the amount given for each dimension */
|
||||
void grow(const float v) {
|
||||
grow(Point3(v,v,v));
|
||||
}
|
||||
|
||||
/** grow the bbox by the amount given for each dimension */
|
||||
void grow(const Point3& p) {
|
||||
p1 -= p; // decrease minimum
|
||||
p2 += p; // increase maximum
|
||||
}
|
||||
|
||||
/** does the bbox contain the given point? */
|
||||
bool contains(const Point3& p) const {
|
||||
if (p.x < p1.x) {return false;}
|
||||
|
||||
Reference in New Issue
Block a user