public class EdgeIntersection extends Object implements Comparable
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.
Modifier and Type | Field and Description |
---|---|
Coordinate |
coord |
double |
dist |
int |
segmentIndex |
Constructor and Description |
---|
EdgeIntersection(Coordinate coord,
int segmentIndex,
double dist) |
Modifier and Type | Method and Description |
---|---|
int |
compare(int segmentIndex,
double dist) |
int |
compareTo(Object obj) |
Coordinate |
getCoordinate() |
double |
getDistance() |
int |
getSegmentIndex() |
boolean |
isEndPoint(int maxSegmentIndex) |
void |
print(PrintStream out) |
String |
toString() |
public Coordinate coord
public int segmentIndex
public double dist
public EdgeIntersection(Coordinate coord, int segmentIndex, double dist)
public Coordinate getCoordinate()
public int getSegmentIndex()
public double getDistance()
public int compareTo(Object obj)
compareTo
in interface Comparable
public int compare(int segmentIndex, double dist)
public boolean isEndPoint(int maxSegmentIndex)
public void print(PrintStream out)
Copyright © 2016. All rights reserved.