hasInteriorIntersection method
@return true if there is an intersection point which is not an endpoint of the segment p0-p1
Implementation
bool hasInteriorIntersection(
LineIntersector li, Coordinate p0, Coordinate p1) {
for (int i = 0; i < li.getIntersectionNum(); i++) {
Coordinate intPt = li.getIntersection(i);
if (!(intPt.equals(p0) || intPt.equals(p1))) return true;
}
return false;
}