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 ); }