Search Results for

    Show / Hide Table of Contents

    Class SegmentStringEx

    Extension methods to mimic JTS' default methods on SegmentString interface

    Inheritance
    object
    SegmentStringEx
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding
    Assembly: NetTopologySuite.dll
    Syntax
    public static class SegmentStringEx

    Methods

    | Edit this page View Source

    GetCoordinate(ISegmentString, int)

    Gets the segment string Coordinate at a given index

    Declaration
    public static Coordinate GetCoordinate(this ISegmentString self, int idx)
    Parameters
    Type Name Description
    ISegmentString self

    A segment string forming a ring

    int idx

    An index

    Returns
    Type Description
    Coordinate

    The Coordinate at the index

    | Edit this page View Source

    NextInRing(ISegmentString, int)

    Gets the next vertex in a ring from a vertex index.

    Declaration
    public static Coordinate NextInRing(this ISegmentString self, int index)
    Parameters
    Type Name Description
    ISegmentString self

    A segment string forming a ring

    int index

    The vertex index

    Returns
    Type Description
    Coordinate

    The next vertex in the ring

    See Also
    IsClosed
    | Edit this page View Source

    PrevInRing(ISegmentString, int)

    Gets the previous vertex in a ring from a vertex index.

    Declaration
    public static Coordinate PrevInRing(this ISegmentString self, int index)
    Parameters
    Type Name Description
    ISegmentString self

    A segment string forming a ring

    int index

    The vertex index

    Returns
    Type Description
    Coordinate

    The previous vertex in the ring

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