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 TypeMethodDescriptionintCompares twoOrientedCoordinateArrays for their relative order
-
Constructor Details
-
OrientedCoordinateArray
Creates a newOrientedCoordinateArrayfor the givenCoordinatearray.- Parameters:
pts- the coordinates to orient
-
-
Method Details
-
compareTo
Compares twoOrientedCoordinateArrays for their relative order- Specified by:
compareToin interfaceComparable- Returns:
- -1 this one is smaller; 0 the two objects are equal; 1 this one is greater
-