com.vividsolutions.jts.geomgraph

Class EdgeIntersection

Implemented Interfaces:
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.

Version:
1.7

Field Summary

Coordinate
coord
double
dist
int
segmentIndex

Constructor Summary

EdgeIntersection(Coordinate coord, int segmentIndex, double dist)

Method Summary

int
compare(int segmentIndex, double dist)
int
compareTo(Object obj)
boolean
isEndPoint(int maxSegmentIndex)
void
print(PrintStream out)

Field Details

coord

public Coordinate coord

dist

public double dist

segmentIndex

public int segmentIndex

Constructor Details

EdgeIntersection

public EdgeIntersection(Coordinate coord,
                        int segmentIndex,
                        double dist)

Method Details

compare

public int compare(int segmentIndex,
                   double dist)
Returns:
-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)