getSegmentOctant method
Gets the octant of the segment starting at vertex index
.
@param index the index of the vertex starting the segment. Must not be the last index in the vertex list @return the octant of the segment at the vertex
Implementation
int getSegmentOctant(int index) {
if (index == pts.length - 1) return -1;
return safeOctant(getCoordinate(index), getCoordinate(index + 1));
// return Octant.octant(getCoordinate(index), getCoordinate(index + 1));
}