public boolean intersects ( Geometry geometry ) { if ( isEmpty ( ) ) { return false ; } if ( exteriorRing . intersects ( geometry ) ) { return true ; } if ( interiorRings != null ) { for ( LinearRing interiorRing : interiorRings ) { if ( interiorRing . intersects ( geometry ) ) { return true ; } } } return false ; }
Does this polygon intersects with the given geometry?