Package org.locationtech.jts.noding
Class OrientedCoordinateArray
- java.lang.Object
-
- org.locationtech.jts.noding.OrientedCoordinateArray
-
- All Implemented Interfaces:
java.lang.Comparable
public class OrientedCoordinateArray extends java.lang.Object implements java.lang.Comparable
Allows comparingCoordinate
arrays in an orientation-independent way.- Version:
- 1.7
- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description OrientedCoordinateArray(Coordinate[] pts)
Creates a newOrientedCoordinateArray
for the givenCoordinate
array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o1)
Compares twoOrientedCoordinateArray
s for their relative order
-
-
-
Constructor Detail
-
OrientedCoordinateArray
public OrientedCoordinateArray(Coordinate[] pts)
Creates a newOrientedCoordinateArray
for the givenCoordinate
array.- Parameters:
pts
- the coordinates to orient
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object o1)
Compares twoOrientedCoordinateArray
s for their relative order- Specified by:
compareTo
in interfacejava.lang.Comparable
- Returns:
- -1 this one is smaller; 0 the two objects are equal; 1 this one is greater
-
-