Search Results for

    Show / Hide Table of Contents

    Class SnappingPointIndex

    An index providing fast creation and lookup of snap points.

    Inheritance
    object
    SnappingPointIndex
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding.Snap
    Assembly: NetTopologySuite.dll
    Syntax
    public sealed class SnappingPointIndex

    Constructors

    | Edit this page View Source

    SnappingPointIndex(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

    | Edit this page View Source

    Depth

    Gets a value indicating the depth of the tree

    Declaration
    public int Depth { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Tolerance

    Gets a value indicating the snapping tolerance value for the index

    Declaration
    public double Tolerance { get; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    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.

    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

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX