isIntersection method

bool isIntersection(
  1. Coordinate pt
)

Tests if the given point is an edge intersection

@param pt the point to test @return true if the point is an intersection

Implementation

bool isIntersection(Coordinate pt) {
  for (Iterator it = iterator(); it.moveNext();) {
    EdgeIntersection ei = it.current;
    if (ei.coord.equals(pt)) return true;
  }
  return false;
}