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