Class SnappingPointIndex
- Namespace
- NetTopologySuite.Noding.Snap
- Assembly
- NetTopologySuite.dll
An index providing fast creation and lookup of snap points.
public sealed class SnappingPointIndex
- Inheritance
-
SnappingPointIndex
- Inherited Members
Constructors
SnappingPointIndex(double)
Creates a snap point index using a specified distance tolerance.
public SnappingPointIndex(double snapTolerance)
Parameters
snapTolerance
doublePoints are snapped if within this distance
Properties
Depth
Gets a value indicating the depth of the tree
public int Depth { get; }
Property Value
Tolerance
Gets a value indicating the snapping tolerance value for the index
public double Tolerance { get; }
Property Value
Methods
Snap(Coordinate)
Snaps a coordinate to an existing snap point, if it is within the snap tolerance distance. Otherwise adds the coordinate to the snap point index.
public Coordinate Snap(Coordinate p)
Parameters
p
CoordinateThe point to snap
Returns
- Coordinate
The point it snapped to, or the input point