/** * Computes the </tt>contains</tt> predicate between a {@link PreparedPolygon} * and a {@link Geometry}. * * @param prep the prepared polygon * @param geom a test geometry * @return true if the polygon contains the geometry */ public static boolean contains(PreparedPolygon prep, Geometry geom) { PreparedPolygonContains polyInt = new PreparedPolygonContains(prep); return polyInt.contains(geom); }
/** * Computes the </tt>contains</tt> predicate between a {@link PreparedPolygon} * and a {@link Geometry}. * * @param prep the prepared polygon * @param geom a test geometry * @return true if the polygon contains the geometry */ public static boolean contains(PreparedPolygon prep, Geometry geom) { PreparedPolygonContains polyInt = new PreparedPolygonContains(prep); return polyInt.contains(geom); }