com.threerings.opengl.model
Class CollisionMesh.CenterComparator
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_idx
protected int _idx
- The index of the coordinate to compare.
CollisionMesh.CenterComparator
public CollisionMesh.CenterComparator(int idx)
compare
public int compare(Triangle t1,
Triangle t2)
- Specified by:
compare in interface Comparator<Triangle>