public class CoordinateComparator<X extends Point_>
extends java.lang.Object
implements java.util.Comparator<X>
| Constructor and Description |
|---|
CoordinateComparator(int dir) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(X p,
X q)
Compare two points according to their i-th coordinate (where i=direction)
|