checkEndPtVertexIntersections2 method

void checkEndPtVertexIntersections2(
  1. Coordinate testPt,
  2. List segStrings
)

Implementation

void checkEndPtVertexIntersections2(Coordinate testPt, List segStrings) {
  for (SegmentString ss in segStrings) {
    List<Coordinate> pts = ss.getCoordinates();
    for (int j = 1; j < pts.length - 1; j++) {
      if (pts[j].equals(testPt))
        throw new RuntimeException(
            "found endpt/interior pt intersection at index $j :pt " +
                testPt.toString());
    }
  }
}