com.threerings.opengl.model
Class CollisionMesh.CenterComparator

java.lang.Object
  extended by com.threerings.opengl.model.CollisionMesh.CenterComparator
All Implemented Interfaces:
Comparator<Triangle>
Enclosing class:
CollisionMesh

protected static class CollisionMesh.CenterComparator
extends Object
implements Comparator<Triangle>

Compares triangles based on one of the coordinates of their centers.


Field Summary
protected  int _idx
          The index of the coordinate to compare.
 
Constructor Summary
CollisionMesh.CenterComparator(int idx)
           
 
Method Summary
 int compare(Triangle t1, Triangle t2)
           
 
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

_idx

protected int _idx
The index of the coordinate to compare.

Constructor Detail

CollisionMesh.CenterComparator

public CollisionMesh.CenterComparator(int idx)
Method Detail

compare

public int compare(Triangle t1,
                   Triangle t2)
Specified by:
compare in interface Comparator<Triangle>