uk.ac.ed.computational_geometry.util
Class BSPTree.Sort

java.lang.Object
  extended by uk.ac.ed.computational_geometry.util.BSPTree.Sort
All Implemented Interfaces:
Comparator<javax.vecmath.Point3d>
Enclosing class:
BSPTree

protected class BSPTree.Sort
extends Object
implements Comparator<javax.vecmath.Point3d>


Field Summary
protected  BSPTree.Plane plane
           
 
Constructor Summary
BSPTree.Sort(BSPTree.Plane plane)
           
 
Method Summary
 int compare(javax.vecmath.Point3d point3d1, javax.vecmath.Point3d point3d2)
           
 int compareX(javax.vecmath.Point3d point3d1, javax.vecmath.Point3d point3d2)
           
 int compareY(javax.vecmath.Point3d point3d1, javax.vecmath.Point3d point3d2)
           
 int compareZ(javax.vecmath.Point3d point3d1, javax.vecmath.Point3d point3d2)
           
 
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

plane

protected BSPTree.Plane plane
Constructor Detail

BSPTree.Sort

public BSPTree.Sort(BSPTree.Plane plane)
Method Detail

compare

public int compare(javax.vecmath.Point3d point3d1,
                   javax.vecmath.Point3d point3d2)
Specified by:
compare in interface Comparator<javax.vecmath.Point3d>

compareX

public int compareX(javax.vecmath.Point3d point3d1,
                    javax.vecmath.Point3d point3d2)

compareY

public int compareY(javax.vecmath.Point3d point3d1,
                    javax.vecmath.Point3d point3d2)

compareZ

public int compareZ(javax.vecmath.Point3d point3d1,
                    javax.vecmath.Point3d point3d2)