com.vividsolutions.jts.noding.snapround

Class SegmentSnapper


public class SegmentSnapper
extends java.lang.Object

Version:
1.6

Constructor Summary

SegmentSnapper()

Method Summary

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
static boolean
isWithinTolerance(Coordinate p, Coordinate p0, Coordinate p1)

Constructor Details

SegmentSnapper

public SegmentSnapper()

Method Details

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
Parameters:
snapPt -
segStr -
segIndex -
Returns:
true if a node was added

isWithinTolerance

public static boolean isWithinTolerance(Coordinate p,
                                        Coordinate p0,
                                        Coordinate p1)
Returns:
true if the point p is within the snap tolerance of the line p0-p1