Struct Position
Indicates the position of a location relative to a node or edge component of a planar topological structure.
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
public readonly struct Position
Fields
| Improve this Doc View SourceLeft
Specifies that a location is to the left
of a component
Declaration
public static Position Left
Field Value
Type | Description |
---|---|
Position | 1 |
On
Specifies that a location is on
a component
Declaration
public static Position On
Field Value
Type | Description |
---|---|
Position | 0 |
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 |
Right
Specifies that a location is to the right
of a component
Declaration
public static Position Right
Field Value
Type | Description |
---|---|
Position | 2 |
Properties
| Improve this Doc View SourceOpposite
Declaration
public readonly Position Opposite { get; }
Property Value
Type | Description |
---|---|
Position |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Operators
| Improve this Doc View SourceEquality(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 |
---|---|
Boolean |
|
Implicit(Position to Int32)
Declaration
public static implicit operator int (Position pos)
Parameters
Type | Name | Description |
---|---|---|
Position | pos | The position index |
Returns
Type | Description |
---|---|
Int32 |
Inequality(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 |
---|---|
Boolean |
|