public class VerticalComparator extends Object implements Comparator<DEdge>, Serializable
| Constructor and Description |
|---|
VerticalComparator(double x)
Vertical comparator constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(DEdge edge1,
DEdge edge2)
This comparison method is a vertical sorting test :
Sort two edges (edge1 and edge2, indeed), and sort them according to their intersection point
with the line l of equation x=abs.
|
double |
getAbs()
get the absciss where we are currently working.
|
void |
setAbs(double x)
Set the absciss where we are going to work.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic VerticalComparator(double x)
x - public final void setAbs(double x)
x - public final double getAbs()
public final int compare(DEdge edge1, DEdge edge2)
compare in interface Comparator<DEdge>edge1 - edge2 - Copyright © 2013 IRSTV CNRS-FR-2488. All Rights Reserved.