Search Results for

    Show / Hide Table of Contents

    Class EditHelper

    Inheritance
    object
    EditHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Nts.Editing
    Assembly: Mapsui.Nts.dll
    Syntax
    public static class EditHelper

    Methods

    | Edit this page View Source

    ShouldInsert(MPoint, double, List<Coordinate>, double, out int)

    Determines if a coordinate should be inserted into list of coordinates. /// It fails if the distance of the location to the line is larger than the screenDistance.

    Declaration
    public static bool ShouldInsert(MPoint worldPosition, double resolution, List<Coordinate> coordinates, double screenDistance, out int segment)
    Parameters
    Type Name Description
    MPoint worldPosition

    The position that should perhaps be inserted.

    double resolution

    The map resolution that is needed to calculte the distance.

    List<Coordinate> coordinates

    The coordinates to insert into.

    double screenDistance

    The allowed screen distance. This value is determined by the size of a symbol or the line width.

    int segment

    The segment to insert it at.

    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX