public class EdgeIntersection extends Objectimplements 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
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int segmentIndex, double dist)
|
int |
compareTo(Object
|
Coordinate |
getCoordinate()
|
double |
getDistance()
|
int |
getSegmentIndex()
|
boolean |
isEndPoint(int maxSegmentIndex)
|
void |
print(PrintStream
|
String |
toString()
|
public Coordinatecoord
public int segmentIndex
public double dist
public EdgeIntersection(Coordinatecoord, int segmentIndex, double dist)
public CoordinategetCoordinate()
public int getSegmentIndex()
public double getDistance()
public int compareTo(Objectobj)
public int compare(int segmentIndex,
double dist)
public boolean isEndPoint(int maxSegmentIndex)
public void print(PrintStreamout)
public StringtoString()