orientationIndexCoord method

int orientationIndexCoord(
  1. Coordinate p
)

Determines the orientation index of a {@link Coordinate} relative to this segment. The orientation index is as defined in {@link Orientation#computeOrientation}.

@param p the coordinate to compare

@return 1 (LEFT) if p is to the left of this segment @return -1 (RIGHT) if p is to the right of this segment @return 0 (COLLINEAR) if p is collinear with this segment

@see Orientation#computeOrientation(Coordinate, Coordinate, Coordinate)

Implementation

int orientationIndexCoord(Coordinate p) {
  return Orientation.index(p0, p1, p);
}