Class EdgeIntersection

Hierarchy: Object , EdgeIntersection
All Implemented Interfaces: Comparable
public class EdgeIntersection
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.

Other

  • version: 1.7
public EdgeIntersection(Coordinate coord, int segmentIndex, double dist)
public Coordinate getCoordinate()
public int getSegmentIndex()
public double getDistance()
public int compareTo(Object obj)
public int compare(int segmentIndex, double dist)
Returns:
-1 this EdgeIntersection is located before the argument location
0 this EdgeIntersection is at the argument location
1 this EdgeIntersection is located after the argument location
public boolean isEndPoint(int maxSegmentIndex)
public void print(PrintStream out)
public String toString()