public boolean containsProperly(Geometry g) { // short-circuit test if (! envelopeCovers(g)) return false; return PreparedPolygonContainsProperly.containsProperly(this, g); }
/** * Computes the </tt>containsProperly</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 properly contains the geometry */ public static boolean containsProperly(PreparedPolygon prep, Geometry geom) { PreparedPolygonContainsProperly polyInt = new PreparedPolygonContainsProperly(prep); return polyInt.containsProperly(geom); }
public boolean containsProperly(Geometry g) { // short-circuit test if (! envelopeCovers(g)) return false; return PreparedPolygonContainsProperly.containsProperly(this, g); }
/** * Computes the </tt>containsProperly</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 properly contains the geometry */ public static boolean containsProperly(PreparedPolygon prep, Geometry geom) { PreparedPolygonContainsProperly polyInt = new PreparedPolygonContainsProperly(prep); return polyInt.containsProperly(geom); }