com.vividsolutions.jts.noding
Class OrientedCoordinateArray
java.lang.Object
com.vividsolutions.jts.noding.OrientedCoordinateArray
- All Implemented Interfaces:
- Comparable
public class OrientedCoordinateArray
- extends Object
- implements Comparable
Allows comparing Coordinate arrays
in an orientation-independent way.
- Version:
- 1.7
- Author:
- Martin Davis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrientedCoordinateArray
public OrientedCoordinateArray(Coordinate[] pts)
- Creates a new
OrientedCoordinateArray
for the given Coordinate array.
- Parameters:
pts - the coordinates to orient
compareTo
public int compareTo(Object o1)
- Compares two
OrientedCoordinateArrays for their relative order
- Specified by:
compareTo in interface Comparable
- Returns:
- -1 this one is smaller
Copyright © 2011. All Rights Reserved.