public class RectangleIntersects extends Object
Geometry is a rectangle. This class works for all input geometries, including
GeometryCollections.
As a further optimization, this class can be used in batch style to test many geometries against a single rectangle.
| Constructor and Description |
|---|
RectangleIntersects(Polygon
Create a new intersects computer for a rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
intersects(Geometry
Tests whether the given Geometry intersects the query rectangle.
|
static boolean |
intersects(Polygon
Tests whether a rectangle intersects a given geometry.
|
public RectangleIntersects(Polygonrectangle)
rectangle - a rectangular Polygon
public static boolean intersects(Polygonrectangle, Geometry b)
rectangle - a rectangular Polygon
b - a Geometry of any type
public boolean intersects(Geometrygeom)
geom - the Geometry to test (may be of any type)