|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.geom.Coordinate.DimensionalComparator
Compares two Coordinates, allowing for either a 2-dimensional
or 3-dimensional comparison, and handling NaN values correctly.
| Constructor Summary | |
Coordinate.DimensionalComparator()
Creates a comparator for 2 dimensional coordinates. |
|
Coordinate.DimensionalComparator(int dimensionsToTest)
Creates a comparator for 2 or 3 dimensional coordinates, depending on the value provided. |
|
| Method Summary | |
static int |
compare(double a,
double b)
Compare two doubles, allowing for NaN values. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two Coordinates along to the number of
dimensions specified. |
| 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 Coordinate.DimensionalComparator()
public Coordinate.DimensionalComparator(int dimensionsToTest)
| Method Detail |
public static int compare(double a,
double b)
doubles, allowing for NaN values.
NaN is treated as being less than any valid number.
a - a doubleb - a double
public int compare(java.lang.Object o1,
java.lang.Object o2)
Coordinates along to the number of
dimensions specified.
compare in interface java.util.Comparatoro1 - a Coordinateo2 - a {link Coordinate}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||