public class EdgeIntersectionList
extends java.lang.Object
Edge
.
Implements splitting an edge with intersections
into multiple resultant edges.Constructor | Description |
---|---|
EdgeIntersectionList(Edge edge) |
Modifier and Type | Method | Description |
---|---|---|
EdgeIntersection |
add(Coordinate intPt,
int segmentIndex,
double dist) |
Adds an intersection into the list, if it isn't already there.
|
void |
addEndpoints() |
Adds entries for the first and last points of the edge to the list
|
void |
addSplitEdges(java.util.List edgeList) |
Creates new edges for all the edges that the intersections in this
list split the parent edge into.
|
boolean |
isIntersection(Coordinate pt) |
Tests if the given point is an edge intersection
|
java.util.Iterator |
iterator() |
Returns an iterator of
EdgeIntersection s |
void |
print(java.io.PrintStream out) |
public EdgeIntersectionList(Edge edge)
public EdgeIntersection add(Coordinate intPt, int segmentIndex, double dist)
public java.util.Iterator iterator()
EdgeIntersection
spublic boolean isIntersection(Coordinate pt)
pt
- the point to testpublic void addEndpoints()
public void addSplitEdges(java.util.List edgeList)
edgeList
- a list of EdgeIntersectionspublic void print(java.io.PrintStream out)
Copyright © 2018. All rights reserved.