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
| Edit this page 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
| Edit this page View SourceOpposite
Declaration
public Position Opposite { get; }
Property Value
Type | Description |
---|---|
Position |
Methods
| Edit this page View SourceEquals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Operators
| Edit this page View Sourceoperator ==(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 |
|
implicit operator int(Position)
Declaration
public static implicit operator int(Position pos)
Parameters
Type | Name | Description |
---|---|---|
Position | pos | The position index |
Returns
Type | Description |
---|---|
int |
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 |
|