Struct Position
- Namespace
- NetTopologySuite.Geometries
- Assembly
- NetTopologySuite.dll
Indicates the position of a location relative to a node or edge component of a planar topological structure.
public readonly struct Position
- Inherited Members
Fields
Left
Specifies that a location is to the left
of a component
public static Position Left
Field Value
- Position
1
On
Specifies that a location is on
a component
public static Position On
Field Value
- Position
0
Parallel
Specifies that a location is is parallel to x-axis
of a component
public static Position Parallel
Field Value
- Position
-1
Right
Specifies that a location is to the right
of a component
public static Position Right
Field Value
- Position
2
Properties
Opposite
public Position Opposite { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Position, Position)
Equality comparer for Position indices
public static bool operator ==(Position lhs, Position rhs)
Parameters
lhs
PositionThe position index on the left-hand-side
rhs
PositionThe position index on the right-hand-side
Returns
- bool
true
if both indices are equal.
implicit operator int(Position)
public static implicit operator int(Position pos)
Parameters
pos
PositionThe position index
Returns
operator !=(Position, Position)
Inequality comparer for Position indices
public static bool operator !=(Position lhs, Position rhs)
Parameters
lhs
PositionThe position index on the left-hand-side
rhs
PositionThe position index on the right-hand-side
Returns
- bool
true
if both indices are not equal.