Table of Contents

Delegate CoincidentNodesResolver<TNodeId, TSource>

Namespace
SpatialNET.Network.Building
Assembly
SpatialNET.Network.Building.dll

Decides about a group of real nodes within the tolerance of each other (ADR 0054): returns the index of the node that stays, the others are merged into it, or -1 for a SpatialNET.Network.Building.NodeConflictKind.RealNodesTooClose conflict.

public delegate int CoincidentNodesResolver<TNodeId, TSource>(IReadOnlyList<CoincidentNode<TNodeId, TSource>> nodes) where TNodeId : notnull, IEquatable<TNodeId>

Parameters

nodes IReadOnlyList<CoincidentNode<TNodeId, TSource>>

The group, two or more nodes in the order they were added.

Returns

int

The index of the winner in nodes, or -1.

Type Parameters

TNodeId
TSource