addIntersectionLI method

void addIntersectionLI(
  1. LineIntersector li,
  2. int segmentIndex,
  3. int geomIndex,
  4. int intIndex,
)

Add an SegmentNode for intersection intIndex. An intersection that falls exactly on a vertex of the SegmentString is normalized to use the higher of the two possible segmentIndexes

Implementation

void addIntersectionLI(
    LineIntersector li, int segmentIndex, int geomIndex, int intIndex) {
  Coordinate intPt =
      new Coordinate.fromCoordinate(li.getIntersection(intIndex));
  addIntersection(intPt, segmentIndex);
}