public class CoordinateComparator<X extends Jcg.geometry.Point_>
extends java.lang.Object
implements java.util.Comparator<X>
Modifier and Type | Field and Description |
---|---|
(package private) int |
direction |
Constructor and Description |
---|
CoordinateComparator(int dir) |
public int compare(X p, X q)
compare
in interface java.util.Comparator<X extends Jcg.geometry.Point_>
p
- the first point to compareq
- second point to compare