Table of Contents

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

TNodeId
TEdgeId

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

Edge TEdgeId

The edge.

From TNodeId

The node where the step starts.

To TNodeId

The node where the step ends.

Reversed bool

Whether the edge was walked against its digitizing direction (from its To to its From).

Cost double

The cost of the edge.

Properties

Cost

The cost of the edge.

public double Cost { get; init; }

Property Value

double

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

bool

To

The node where the step ends.

public TNodeId To { get; init; }

Property Value

TNodeId