|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjasi.sim.geo.cartesian.SpaceVec.Distance
public static final class SpaceVec.Distance
Distance function, which imposes a total ordering of space vectors by comparing the distance to a center.
Constructor Summary | |
---|---|
SpaceVec.Distance(SpaceVec center)
Constructor of this distance comparator. |
Method Summary | |
---|---|
int |
compare(SpaceVec s1,
SpaceVec s2)
Compares its two arguments for order. |
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 |
Constructor Detail |
---|
public SpaceVec.Distance(SpaceVec center)
center
- The center of the distances.Method Detail |
---|
public int compare(SpaceVec s1, SpaceVec s2)
compare
in interface java.util.Comparator<SpaceVec>
s1
- The first object to be compared.s2
- The second object to be compared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |