|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.CompareDim
public class CompareDim
Used to sort shapes. A simple compare that compares values in specified dimension of two elements of a Shape.
Constructor Summary | |
---|---|
CompareDim()
|
Method Summary | |
---|---|
int |
compare(double[] e1,
double[] e2,
int dim)
Returns -1 if e1[dim] lt e2[dim], 0 if e1[dim] eq e2[dim], 1 if e1[dim] gt e2[dim] |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompareDim()
Method Detail |
---|
public int compare(double[] e1, double[] e2, int dim)
compare
in interface DimensionComparison
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |