/** * Computes the intersects predicate between a {@link PreparedLineString} * and a {@link Geometry}. * * @param prep the prepared linestring * @param geom a test geometry * @return true if the linestring intersects the geometry */ public static boolean intersects(PreparedLineString prep, Geometry geom) { PreparedLineStringIntersects op = new PreparedLineStringIntersects(prep); return op.intersects(geom); }