com.vividsolutions.jts.noding

Class OrientedCoordinateArray

Implemented Interfaces:
Comparable

public class OrientedCoordinateArray
extends java.lang.Object
implements Comparable

Allows comparing Coordinate arrays in an orientation-independent way.
Version:
1.7
Author:
Martin Davis

Constructor Summary

OrientedCoordinateArray(Coordinate[] pts)
Creates a new OrientedCoordinateArray for the given Coordinate array.

Method Summary

int
compareTo(Object o1)
Compares two OrientedCoordinateArrays for their relative order

Constructor Details

OrientedCoordinateArray

public OrientedCoordinateArray(Coordinate[] pts)
Creates a new OrientedCoordinateArray for the given Coordinate array.
Parameters:
pts - the coordinates to orient

Method Details

compareTo

public int compareTo(Object o1)
Compares two OrientedCoordinateArrays for their relative order
Returns:
-1 this one is smaller