Namespace: predicate

jsts.operation.predicate

Source:

Methods

(static) RectangleContains(rectangle)

Optimized implementation of the contains spatial predicate for cases where the first Geometry is a rectangle. This class works for all input geometries, including GeometryCollections.

As a further optimization, this class can be used to test many geometries against a single rectangle in a slightly more efficient way.

Parameters:
Name Type Description
rectangle a rectangular geometry
Version:
  • 1.7 Create a new contains computer for two geometries.
Source:

(static) RectangleIntersects(rectangle)

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.

Parameters:
Name Type Description
rectangle a rectangular Polygon
Version:
  • 1.7 Create a new intersects computer for a rectangle.
Source: