public class RectangleContains extends Object
Geometryis a rectangle. This class works for all input geometries, including
As a further optimization, this class can be used to test many geometries against a single rectangle in a slightly more efficient way.
|Constructor and Description|
Create a new contains computer for two geometries.
|Modifier and Type||Method and Description|
Tests whether a rectangle contains a given geometry.
public RectangleContains(Polygon rectangle)
rectangle- a rectangular geometry
rectangle- a rectangular Polygon
b- a Geometry of any type
public boolean contains(Geometry geom)
Copyright © 2020. All rights reserved.