Class GeometryContainsPointVisitor

Hierarchy: Object , ShortCircuitedGeometryVisitor, GeometryContainsPointVisitor
class GeometryContainsPointVisitor
extends ShortCircuitedGeometryVisitor
A visitor which tests whether it can be concluded that a geometry contains a vertex of a query geometry.
Authors:
Martin Davis

Other

  • version: 1.7
public GeometryContainsPointVisitor(Polygon rectangle)
public boolean containsPoint()
Reports whether it can be concluded that a corner point of the rectangle is contained in the geometry, or whether further testing is required.
Returns:
true if a corner point is contained or false if no conclusion about intersection can be made
protected void visit(Geometry geom)
protected boolean isDone()