com.vividsolutions.jts.geom.prep
public class PreparedPolygonIntersects extends PreparedPolygonPredicate
PreparedPolygon
s relative to all other Geometry
classes.
Uses short-circuit tests and indexing to improve performance.prepPoly
Constructor and Description |
---|
PreparedPolygonIntersects(PreparedPolygon prepPoly)
Creates an instance of this operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
intersects(Geometry geom)
Tests whether this PreparedPolygon intersects a given geometry.
|
static boolean |
intersects(PreparedPolygon prep,
Geometry geom)
Computes the intersects predicate between a
PreparedPolygon
and a Geometry . |
isAllTestComponentsInTarget, isAllTestComponentsInTargetInterior, isAnyTargetComponentInAreaTest, isAnyTestComponentInTarget, isAnyTestComponentInTargetInterior
public PreparedPolygonIntersects(PreparedPolygon prepPoly)
prepPoly
- the PreparedPolygon to evaluatepublic static boolean intersects(PreparedPolygon prep, Geometry geom)
PreparedPolygon
and a Geometry
.prep
- the prepared polygongeom
- a test geometrypublic boolean intersects(Geometry geom)
geom
- the test geometry