2 import java
.util
.Comparator
;
9 implements Comparator
<PointDouble
> {
12 public int compare(final PointDouble a
, final PointDouble b
) {
14 //return (int) (a.y - b.y);
15 return (a
.y
> b
.y
) ?
-1 : +1;
17 //return (int)(a.x - b.x);
18 return (a
.x
> b
.x
) ?
-1 : +1;