RectangleIntersects class
Implementation of the intersects spatial predicate optimized for the case where one {@link Geometry} is a rectangle. This class works for all input geometries, including {@link GeometryCollection}s.
As a further optimization, this class can be used in batch style to test many geometries against a single rectangle.
@version 1.7
Constructors
- RectangleIntersects(Polygon rectangle)
- Create a new intersects computer for a rectangle.
Properties
Methods
-
intersects(
Geometry geom) → bool - Tests whether the given Geometry intersects the query rectangle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
intersectsStatic(
Polygon rectangle, Geometry b) → bool - Tests whether a rectangle intersects a given geometry.