com.vividsolutions.jts.geomgraph
Class EdgeIntersection
java.lang.Object
com.vividsolutions.jts.geomgraph.EdgeIntersection
- Comparable
public class EdgeIntersection
extends java.lang.Object
implements Comparable
An EdgeIntersection represents a point on an
edge which intersects with another edge.
The intersection may either be a single point, or a line segment
(in which case this point is the start of the line segment)
The label attached to this intersection point applies to
the edge from this point forwards, until the next
intersection or the end of the edge.
The intersection point must be precise.
segmentIndex
public int segmentIndex
EdgeIntersection
public EdgeIntersection(Coordinate coord,
int segmentIndex,
double dist)
compare
public int compare(int segmentIndex,
double dist)
- -1 this EdgeIntersection is located before the argument location
compareTo
public int compareTo(Object obj)
isEndPoint
public boolean isEndPoint(int maxSegmentIndex)
print
public void print(PrintStream out)