com.vividsolutions.jts.noding.snapround
Class SegmentSnapper
java.lang.Object
com.vividsolutions.jts.noding.snapround.SegmentSnapper
public class SegmentSnapper
extends java.lang.Object
SegmentSnapper
public SegmentSnapper()
addSnappedNode
public boolean addSnappedNode(Coordinate snapPt,
SegmentString segStr,
int segIndex)
Adds a new node (equal to the snap pt) to the segment
if the snapPt is
within tolerance of the segment
snapPt
- segStr
- segIndex
-
isWithinTolerance
public static boolean isWithinTolerance(Coordinate p,
Coordinate p0,
Coordinate p1)
- true if the point p is within the snap tolerance of the line p0-p1