code: public boolean intersects(Geometry geometry) {
  		if (geometry == null) {
  			return false;
  		}
  		Coordinate[] arr1 = getCoordinates();
  		Coordinate[] arr2 = geometry.getCoordinates();
  		for (int i = 0; i < arr1.length - 1; i++) {
  			for (int j = 0; j < arr2.length - 1; j++) {
  				if (Mathlib.lineIntersects(arr1[i], arr1[i + 1], arr2[j], arr2[j + 1])) {
  					return true;
  				}
  			}
  		}
  		return false;
  	}
docs: Calculate whether or not this geometry intersects with another.
  
  @param geometry
  The other geometry to check for intersection.
  @return Returns true or false.