Search Results for

    Show / Hide Table of Contents

    Class EdgeIntersection

    An EdgeIntersection represents a point on an edge which intersects with another edge. The intersection may either be a single point, or a line segment (in which case this point is the start of the line segment) The label attached to this intersection point applies to the edge from this point forwards, until the next intersection or the end of the edge. The intersection point must be precise.

    Inheritance
    object
    EdgeIntersection
    Implements
    IComparable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public class EdgeIntersection : IComparable

    Constructors

    | Edit this page View Source

    EdgeIntersection(Coordinate, int, double)

    Creates an instance of this class

    Declaration
    public EdgeIntersection(Coordinate coord, int segmentIndex, double dist)
    Parameters
    Type Name Description
    Coordinate coord

    The point of intersection

    int segmentIndex

    The index of the containing line segment in the parent edge

    double dist

    The edge distance or this point along the containing line segment

    Properties

    | Edit this page View Source

    Coordinate

    The point of intersection.

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

    Distance

    The edge distance of this point along the containing line segment.

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

    SegmentIndex

    The index of the containing line segment in the parent edge.

    Declaration
    public int SegmentIndex { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Compare(int, double)

    Comparison with segment and distance.

    Declaration
    public int Compare(int segmentIndex, double dist)
    Parameters
    Type Name Description
    int segmentIndex

    The index of the containing line segment

    double dist

    The distance of this point along the containing line segment

    Returns
    Type Description
    int

    -1 this EdgeIntersection is located before the argument location, 0 this EdgeIntersection is at the argument location, 1 this EdgeIntersection is located after the argument location.

    | Edit this page View Source

    CompareTo(object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    int
    | Edit this page View Source

    IsEndPoint(int)

    Declaration
    public bool IsEndPoint(int maxSegmentIndex)
    Parameters
    Type Name Description
    int maxSegmentIndex
    Returns
    Type Description
    bool
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    | Edit this page View Source

    Write(StreamWriter)

    Declaration
    public void Write(StreamWriter outstream)
    Parameters
    Type Name Description
    StreamWriter outstream

    Implements

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