Class SnappingPointIndex
An index providing fast creation and lookup of snap points.
Inherited Members
Namespace: NetTopologySuite.Noding.Snap
Assembly: NetTopologySuite.dll
Syntax
public sealed class SnappingPointIndex
Constructors
| Improve this Doc View SourceSnappingPointIndex(Double)
Creates a snap point index using a specified distance tolerance.
Declaration
public SnappingPointIndex(double snapTolerance)
Parameters
Type | Name | Description |
---|---|---|
Double | snapTolerance | Points are snapped if within this distance |
Properties
| Improve this Doc View SourceDepth
Gets a value indicating the depth of the tree
Declaration
public int Depth { get; }
Property Value
Type | Description |
---|---|
Int32 |
Tolerance
Gets a value indicating the snapping tolerance value for the index
Declaration
public double Tolerance { get; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceSnap(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.
Declaration
public Coordinate Snap(Coordinate p)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | p | The point to snap |
Returns
Type | Description |
---|---|
Coordinate | The point it snapped to, or the input point |