Class DijkstraResult<TNode>
Inheritance
DijkstraResult<TNode>
Assembly: AnyPath.dll
Syntax
public class DijkstraResult<TNode> where TNode : unmanaged, IEquatable<TNode>
Type Parameters
Constructors
DijkstraResult()
Declaration
Properties
Goals
Declaration
public IEnumerable<TNode> Goals { get; }
Property Value
MaxCost
Declaration
public float MaxCost { get; }
Property Value
Start
Declaration
public TNode Start { get; }
Property Value
Methods
GetPath(Path<TNode>, TNode, bool)
Declaration
public void GetPath(Path<TNode> destResult, TNode goal, bool includeStart)
Parameters
Type |
Name |
Description |
Path<TNode> |
destResult |
|
TNode |
goal |
|
bool |
includeStart |
|
GetPath(TNode, bool)
Declaration
public Path<TNode> GetPath(TNode goal, bool includeStart)
Parameters
Type |
Name |
Description |
TNode |
goal |
|
bool |
includeStart |
|
Returns
Type |
Description |
Path<TNode> |
|
HasPath(TNode)
Declaration
public bool HasPath(TNode goal)
Parameters
Type |
Name |
Description |
TNode |
goal |
|
Returns
TryGetCost(TNode, out float)
Declaration
public bool TryGetCost(TNode goal, out float cost)
Parameters
Type |
Name |
Description |
TNode |
goal |
|
float |
cost |
|
Returns
Extension Methods