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
OrientedCoordinateArray
s for their relative order
- Specified by:
compareTo
in interface Comparable
- Returns:
- -1 this one is smaller;
0 the two objects are equal;
1 this one is greater
Copyright © 2012. All Rights Reserved.