Struct PathStep<TNodeId, TEdgeId>
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
One edge of a SpatialNET.Network.NetworkPath`2.
public readonly record struct PathStep<TNodeId, TEdgeId> : IEquatable<PathStep<TNodeId, TEdgeId>> where TNodeId : notnull, IEquatable<TNodeId> where TEdgeId : notnull, IEquatable<TEdgeId>Type Parameters
TNodeIdTEdgeId
Implements
Inherited Members
Constructors
PathStep(TEdgeId, TNodeId, TNodeId, bool, double)
One edge of a SpatialNET.Network.NetworkPath`2.
public PathStep(TEdgeId Edge, TNodeId From, TNodeId To, bool Reversed, double Cost)Parameters
EdgeTEdgeId-
The edge.
FromTNodeId-
The node where the step starts.
ToTNodeId-
The node where the step ends.
Reversedbool-
Whether the edge was walked against its digitizing direction (from its
Toto itsFrom). Costdouble-
The cost of the edge.
Properties
Cost
The cost of the edge.
public double Cost { get; init; }Property Value
Edge
The edge.
public TEdgeId Edge { get; init; }Property Value
- TEdgeId
From
The node where the step starts.
public TNodeId From { get; init; }Property Value
- TNodeId
Reversed
Whether the edge was walked against its digitizing direction (from its To to its From).
public bool Reversed { get; init; }Property Value
To
The node where the step ends.
public TNodeId To { get; init; }Property Value
- TNodeId