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 OrientedCoordinateArrays for their relative order
Returns:
-1 this one is smaller; 0 the two objects are equal; 1 this one is greater