Struct Turn
Represents a turn.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct Turn
Constructors
Turn(OriginalEdge, UInt32)
Creates a turn from an original and a third vertex.
Declaration
public Turn(OriginalEdge edge, uint to)
Parameters
OriginalEdge
edge
|
System.UInt32
to
|
Turn(UInt32, UInt32, UInt32)
Creates a new turn.
Declaration
public Turn(uint vertex1, uint vertex2, uint vertex3)
Parameters
System.UInt32
vertex1
|
System.UInt32
vertex2
|
System.UInt32
vertex3
|
Properties
IsUTurn
Returns true if this turn is a u-turn.
Declaration
public bool IsUTurn { get; }
Property Value
System.Boolean
|
Item[Int32]
Gets the n-th vertex in this turn.
Declaration
public uint this[int i] { get; }
Parameters
System.Int32
i
|
Property Value
System.UInt32
|
Length
Gets the length of this turn.
Declaration
public int Length { get; }
Property Value
System.Int32
|
Vertex1
First vertex.
Declaration
public uint Vertex1 { get; set; }
Property Value
System.UInt32
|
Vertex2
Second vertex.
Declaration
public uint Vertex2 { get; set; }
Property Value
System.UInt32
|
Vertex3
Third vertex.
Declaration
public uint Vertex3 { get; set; }
Property Value
System.UInt32
|
Methods
IsRestrictedBy(Restriction)
Returns true if this turn is restricted by the given restriction.
Declaration
public bool IsRestrictedBy(Restriction restriction)
Parameters
Restriction
restriction
|
Returns
System.Boolean
|
IsRestrictedBy(RestrictionCollection)
Returns true if this turn is restricted by one of the restrictions in the given collection.
Declaration
public bool IsRestrictedBy(RestrictionCollection restrictions)
Parameters
RestrictionCollection
restrictions
|
Returns
System.Boolean
|
Reverse()
Reverses this turn.
Declaration
public void Reverse()
ToString()
Returns a description of this turn.
Declaration
public override string ToString()
Returns
System.String
|
Overrides
System.ValueType.ToString()