motris.model
Class ShadowHull.AngleComparator

java.lang.Object
  extended bymotris.model.ShadowHull.AngleComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ShadowHull

private class ShadowHull.AngleComparator
extends java.lang.Object
implements java.util.Comparator

Sorts Points by Angle

Author:
Hendrik Dahlkamp

Field Summary
(package private)  double pivotX
           
(package private)  double pivotY
           
 
Constructor Summary
ShadowHull.AngleComparator(ShadowHull.ShadowHullVertex pivot)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          return "0" (i.e.o1=o2 if their x-components differ by no more than 0.0001
 
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
 

Field Detail

pivotX

double pivotX

pivotY

double pivotY
Constructor Detail

ShadowHull.AngleComparator

public ShadowHull.AngleComparator(ShadowHull.ShadowHullVertex pivot)
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
return "0" (i.e.o1=o2 if their x-components differ by no more than 0.0001

Specified by:
compare in interface java.util.Comparator