PathT Class |
Represents a linked-list of nodes and the running total of cost.
Result spited out by the AStar algorithm.
Namespace: Kit.Algorithms
public class Path<T> : IEnumerable<T>, IEnumerable
The PathT type exposes the following members.
| Name | Description | |
|---|---|---|
| LastStep | Reference to the last node. | |
| PreviousSteps | A PathT to all the previous nodes. | |
| TotalCost | Total cost of this PathT. |
| Name | Description | |
|---|---|---|
| AddStep | Add a new step to this PathT with the given stepCost. | |
| GetEnumerator |
| Name | Description | |
|---|---|---|
| ForEachT | Perform an action on a enumerable of items. (Defined by EnumerableExtensions.) | |
| IndexOfT(T) | Overloaded. Return the index of an item, or -1 if not found. (Defined by EnumerableExtensions.) | |
| IndexOfT(T, IEqualityComparerT) | Overloaded. Return the index of an item, or -1 if not found. (Defined by EnumerableExtensions.) | |
| LogT | Log all the items in enumerable to the Console. (Defined by EnumerableExtensions.) | |
| WithIndexT | Allows to traverse over an enumerable along with the indices of items. (Defined by EnumerableExtensions.) |