isOnSegment method

bool isOnSegment()

Reports whether the point lies exactly on one of the supplied segments. This method may be called at any time as segments are processed. If the result of this method is true, no further segments need be supplied, since the result will never change again.

@return true if the point lies exactly on a segment

Implementation

bool isOnSegment() {
  return isPointOnSegment;
}