Search Results for

    Show / Hide Table of Contents

    Struct Position

    Indicates the position of a location relative to a node or edge component of a planar topological structure.

    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    public readonly struct Position

    Fields

    | Edit this page View Source

    Left

    Specifies that a location is to the left of a component

    Declaration
    public static Position Left
    Field Value
    Type Description
    Position

    1

    | Edit this page View Source

    On

    Specifies that a location is on a component

    Declaration
    public static Position On
    Field Value
    Type Description
    Position

    0

    | Edit this page View Source

    Parallel

    Specifies that a location is is parallel to x-axis of a component

    Declaration
    public static Position Parallel
    Field Value
    Type Description
    Position

    -1

    | Edit this page View Source

    Right

    Specifies that a location is to the right of a component

    Declaration
    public static Position Right
    Field Value
    Type Description
    Position

    2

    Properties

    | Edit this page View Source

    Opposite

    Returns Left if the position is Right, Right if the position is Left, or the position otherwise.

    Declaration
    public Position Opposite { get; }
    Property Value
    Type Description
    Position

    Methods

    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    | Edit this page View Source

    operator ==(Position, Position)

    Equality comparer for Position indices

    Declaration
    public static bool operator ==(Position lhs, Position rhs)
    Parameters
    Type Name Description
    Position lhs

    The position index on the left-hand-side

    Position rhs

    The position index on the right-hand-side

    Returns
    Type Description
    bool

    true if both indices are equal.

    | Edit this page View Source

    implicit operator int(Position)

    Implicit conversion operator for Position to int conversion.

    Declaration
    public static implicit operator int(Position pos)
    Parameters
    Type Name Description
    Position pos

    The position index

    Returns
    Type Description
    int
    | Edit this page View Source

    operator !=(Position, Position)

    Inequality comparer for Position indices

    Declaration
    public static bool operator !=(Position lhs, Position rhs)
    Parameters
    Type Name Description
    Position lhs

    The position index on the left-hand-side

    Position rhs

    The position index on the right-hand-side

    Returns
    Type Description
    bool

    true if both indices are not equal.

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