motris.model
Class ConvexHull.ByXComparator

java.lang.Object
  extended bymotris.model.ConvexHull.ByXComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ConvexHull

private class ConvexHull.ByXComparator
extends java.lang.Object
implements java.util.Comparator

Sorts Points by X direction. If two points share the same X coordinate, the one with the higher Y coordinate comes first

Author:
Hendrik Dahlkamp

Constructor Summary
private ConvexHull.ByXComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ConvexHull.ByXComparator

private ConvexHull.ByXComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator