inline bool contains (const BoundingBox & b) const { for (unsigned int i = 0; i < 3; i++) if (fabs (getMiddle (i) - b.getMiddle (i)) - BOUNDINGBOX_EPSILON > (getWHL (i) + b.getWHL (i)) / 2.0) return false; return true; }