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 |
|---|---|
Point |
coord |
double |
dist |
int |
segmentIndex |
| Constructor and Description |
|---|
EdgeIntersection(Point coord,
int segmentIndex,
double dist) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int segmentIndex,
double dist) |
int |
compareTo(Object obj) |
Point |
getCoordinate() |
double |
getDistance() |
int |
getSegmentIndex() |
boolean |
isEndPoint(int maxSegmentIndex) |
void |
print(PrintStream out) |
String |
toString() |
public Point coord
public int segmentIndex
public double dist
public EdgeIntersection(Point coord, int segmentIndex, double dist)
public int compare(int segmentIndex,
double dist)
public int compareTo(Object obj)
compareTo in interface Comparablepublic Point getCoordinate()
public double getDistance()
public int getSegmentIndex()
public boolean isEndPoint(int maxSegmentIndex)
public void print(PrintStream out)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.