bool Box3::containsBox( const Box3& box ) const { if ( ( mMin.x() <= box.min().x() ) && ( box.max().x() <= mMax.x() ) && ( mMin.y() <= box.min().y() ) && ( box.max().y() <= mMax.y() ) && ( mMin.z() <= box.min().z() ) && ( box.max().z() <= mMax.z() ) ) { return true; } return false; }
bool Box3::isIntersectionBox( const Box3& box ) const { // using 6 splitting planes to rule out intersections. if ( box.max().x() < mMin.x() || box.min().x() > mMax.x() || box.max().y() < mMin.y() || box.min().y() > mMax.y() || box.max().z() < mMin.z() || box.min().z() > mMax.z() ) { return false; } return true; }
bool Box3::equals( const Box3& box ) const { return box.min().equals( mMin ) && box.max().equals( mMax ); }