vec_math
Class VectorG.IComp
java.lang.Object
vec_math.VectorG.IComp
- All Implemented Interfaces:
- Comparator<VectorG>
- Enclosing class:
- VectorG
private static class VectorG.IComp
- extends Object
- implements Comparator<VectorG>
Special index comparator.
|
Field Summary |
private int |
index
Index in the VectorG to compare. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
private int index
- Index in the VectorG to compare.
VectorG.IComp
private VectorG.IComp(int i)
compare
public int compare(VectorG n1,
VectorG n2)
- Compares two VectorG using the specified index. Throws a class cast
exception, if they cannot be compared.
- Specified by:
compare in interface Comparator<VectorG>