com.vividsolutions.jts.geomgraph
Class EdgeIntersection
java.lang.Object
com.vividsolutions.jts.geomgraph.EdgeIntersection
- Comparable
public class EdgeIntersection
extends java.lang.Object
implements Comparable
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 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)