class RectangleIntersectsSegmentVisitor extends ShortCircuitedGeometryVisitor
Modifier and Type | Field and Description |
---|---|
private boolean |
hasIntersection |
private Coordinate |
p0 |
private Coordinate |
p1 |
private Envelope |
rectEnv |
private RectangleLineIntersector |
rectIntersector |
Constructor and Description |
---|
RectangleIntersectsSegmentVisitor(Polygon rectangle)
Creates a visitor for checking rectangle intersection
with segments
|
Modifier and Type | Method and Description |
---|---|
private void |
checkIntersectionWithLineStrings(java.util.List lines) |
private void |
checkIntersectionWithSegments(LineString testLine) |
boolean |
intersects()
Reports whether any segment intersection exists.
|
protected boolean |
isDone() |
protected void |
visit(Geometry geom) |
applyTo
private Envelope rectEnv
private RectangleLineIntersector rectIntersector
private boolean hasIntersection
private Coordinate p0
private Coordinate p1
public RectangleIntersectsSegmentVisitor(Polygon rectangle)
rectangle
- the query rectanglepublic boolean intersects()
protected void visit(Geometry geom)
visit
in class ShortCircuitedGeometryVisitor
private void checkIntersectionWithLineStrings(java.util.List lines)
private void checkIntersectionWithSegments(LineString testLine)
protected boolean isDone()
isDone
in class ShortCircuitedGeometryVisitor