public class EdgeIntersectionList extends Object implements Iterable<EdgeIntersection>
Edge.
Implements splitting an edge with intersections
into multiple resultant edges.| Constructor and Description |
|---|
EdgeIntersectionList(Edge edge) |
| Modifier and Type | Method and Description |
|---|---|
EdgeIntersection |
add(Point 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(List edgeList)
Creates new edges for all the edges that the intersections in this
list split the parent edge into.
|
boolean |
isIntersection(Point pt)
Tests if the given point is an edge intersection
|
Iterator<EdgeIntersection> |
iterator()
Returns an iterator of
EdgeIntersections |
void |
print(PrintStream out) |
public EdgeIntersectionList(Edge edge)
public EdgeIntersection add(Point intPt, int segmentIndex, double dist)
public void addEndpoints()
public void addSplitEdges(List edgeList)
edgeList - a list of EdgeIntersectionspublic boolean isIntersection(Point pt)
pt - the point to testpublic Iterator<EdgeIntersection> iterator()
EdgeIntersectionsiterator in interface Iterable<EdgeIntersection>public void print(PrintStream out)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.