Package org.locationtech.jts.geomgraph
Class EdgeIntersection
java.lang.Object
org.locationtech.jts.geomgraph.EdgeIntersection
- All Implemented Interfaces:
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(int segmentIndex, double dist) int
double
int
boolean
isEndPoint
(int maxSegmentIndex) void
print
(PrintStream out) toString()
-
Field Details
-
coord
-
segmentIndex
public int segmentIndex -
dist
public double dist
-
-
Constructor Details
-
EdgeIntersection
-
-
Method Details
-
getCoordinate
-
getSegmentIndex
public int getSegmentIndex() -
getDistance
public double getDistance() -
compareTo
- Specified by:
compareTo
in interfaceComparable
-
compare
public int compare(int segmentIndex, double dist) - Returns:
- -1 this EdgeIntersection is located before the argument location
-
isEndPoint
public boolean isEndPoint(int maxSegmentIndex) -
print
-
toString
-