compareTo method
Compares two {@link OrientedCoordinateArray}s for their relative order
@return -1 this one is smaller; 0 the two objects are equal; 1 this one is greater
Implementation
int compareTo(var o1) {
OrientedCoordinateArray oca = o1;
int comp = compareOriented(pts, _orientation, oca.pts, oca._orientation);
/*
// MD - testing only
int oldComp = SegmentStringDissolver.ptsComp.compare(pts, oca.pts);
if ((oldComp == 0 || comp == 0) && oldComp != comp) {
System.out.println("bidir mismatch");
bool orient1 = orientation(pts);
bool orient2 = orientation(oca.pts);
int comp2 = compareOriented(pts, orientation,
oca.pts, oca.orientation);
int oldComp2 = SegmentStringDissolver.ptsComp.compare(pts, oca.pts);
}
*/
return comp;
}