JTS Core 1.17.1
Packages
Classes
Search
About
Top
OrientedCoordinateArray(Coordinate[])
compareTo(Object): int
Bottom
Source
Classic
org.locationtech.jts.noding
Class OrientedCoordinateArray
Hierarchy:
Object
, OrientedCoordinateArray
All Implemented Interfaces:
Comparable
public class OrientedCoordinateArray
implements
Comparable
Allows comparing
Coordinate
arrays in an orientation-independent way.
Authors:
Martin Davis
Other
version: 1.7
public
OrientedCoordinateArray(Coordinate[] pts)
Creates a new
OrientedCoordinateArray
for the given
Coordinate
array.
Parameters:
pts - pts the coordinates to orient
public
int compareTo(
Object
o1)
Compares two
OrientedCoordinateArray
s for their relative order
Returns:
-1 this one is smaller; 0 the two objects are equal; 1 this one is greater