Package org.locationtech.jts.noding
Class OrientedCoordinateArray
java.lang.Object
org.locationtech.jts.noding.OrientedCoordinateArray
- All Implemented Interfaces:
Comparable
Allows comparing
Coordinate
arrays
in an orientation-independent way.- Version:
- 1.7
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares twoOrientedCoordinateArray
s for their relative order
-
Constructor Details
-
OrientedCoordinateArray
Creates a newOrientedCoordinateArray
for the givenCoordinate
array.- Parameters:
pts
- the coordinates to orient
-
-
Method Details
-
compareTo
Compares twoOrientedCoordinateArray
s for their relative order- Specified by:
compareTo
in interfaceComparable
- Returns:
- -1 this one is smaller; 0 the two objects are equal; 1 this one is greater
-