|
JTS Topology Suite version 1.13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.operation.predicate.RectangleIntersects
public class RectangleIntersects
Implementation of the intersects spatial predicate
optimized for the case where one 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 Summary | |
|---|---|
RectangleIntersects(Polygon rectangle)
Create a new intersects computer for a rectangle. |
|
| Method Summary | |
|---|---|
boolean |
intersects(Geometry geom)
Tests whether the given Geometry intersects the query rectangle. |
static boolean |
intersects(Polygon rectangle,
Geometry b)
Tests whether a rectangle intersects a given geometry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RectangleIntersects(Polygon rectangle)
rectangle - a rectangular Polygon| Method Detail |
|---|
public static boolean intersects(Polygon rectangle,
Geometry b)
rectangle - a rectangular Polygonb - a Geometry of any type
public boolean intersects(Geometry geom)
geom - the Geometry to test (may be of any type)
|
JTS Topology Suite version 1.13 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||