Note that the projected point may lie outside the line segment. If this is the case, the projection factor will lie outside the range [0.0, 1.0].
868788899091929394
* @param encroachPt * @return */ public static Coordinate projectedSplitPoint(Segment seg, Coordinate encroachPt) { LineSegment lineSeg = seg.getLineSegment(); Coordinate projPt = lineSeg.project(encroachPt); return projPt; } }
* @param encroachPt * @return a split point on the segment */ public static Coordinate projectedSplitPoint(Segment seg, Coordinate encroachPt) { LineSegment lineSeg = seg.getLineSegment(); Coordinate projPt = lineSeg.project(encroachPt); return projPt; } }