public boolean isIntersectingNE ( Envelope2D other ) { return ( ( xmin <= other . xmin ) ? xmax >= other . xmin : other . xmax >= xmin ) && // check that x projections overlap ( ( ymin <= other . ymin ) ? ymax >= other . ymin : other . ymax >= ymin ) ; // check // that // y // projections // overlap }
Checks if this envelope intersects the other assuming neither one is empty .