public boolean contains ( Bbox other ) { if ( other . getX ( ) < this . getX ( ) ) { return false ; } if ( other . getY ( ) < this . getY ( ) ) { return false ; } if ( other . getEndPoint ( ) . getX ( ) > this . getEndPoint ( ) . getX ( ) ) { return false ; } if ( other . getEndPoint ( ) . getY ( ) > this . getEndPoint ( ) . getY ( ) ) { return false ; } return true ; }
Does this bounding box contain the given bounding box?