Struct AdditionalAndExcludeEdges<TNode>
Combines AdditionalEdges<TNode> and ExcludeEdges<TNode> into one modifier.
Namespace: AnyPath.Native.EdgeMods
Assembly: AnyPath.dll
Syntax
public struct AdditionalAndExcludeEdges<TNode> : IEdgeMod<TNode>, IDisposable where TNode : unmanaged, IEquatable<TNode>
Type Parameters
| Name | Description |
|---|---|
| TNode |
Constructors
AdditionalAndExcludeEdges(Allocator)
Declaration
public AdditionalAndExcludeEdges(Allocator allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| Allocator | allocator |
Methods
AddAdditionalEdge(TNode, TNode, float)
Adds an additional edge. AddEdge(TNode, TNode, float)
Declaration
public void AddAdditionalEdge(TNode from, TNode to, float cost)
Parameters
| Type | Name | Description |
|---|---|---|
| TNode | from | |
| TNode | to | |
| float | cost |
AddExclusion(TNode, TNode)
Adds en exclusion edge. AddExclusion(TNode, TNode)
Declaration
public void AddExclusion(TNode from, TNode to)
Parameters
| Type | Name | Description |
|---|---|---|
| TNode | from | |
| TNode | to |
Clear()
Clears all additional and excluded edges.
Declaration
public void Clear()