Struct ALT<TNode>
Assembly: AnyPath.dll
Syntax
public struct ALT<TNode> : IHeuristicProvider<TNode>, IDisposable where TNode : unmanaged, IEquatable<TNode>
Type Parameters
Constructors
ALT(Allocator)
Declaration
public ALT(Allocator allocator)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Properties
IsDirected
Declaration
public bool IsDirected { get; }
Property Value
LandmarkCount
Declaration
public int LandmarkCount { get; }
Property Value
Methods
GetFromKeyValueArrays(Allocator)
Declaration
public NativeKeyValueArrays<TNode, FixedList128Bytes<float>> GetFromKeyValueArrays(Allocator allocator)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Returns
Type |
Description |
NativeKeyValueArrays<TNode, FixedList128Bytes<float>> |
|
GetLandmarkLocation(int)
Declaration
public TNode GetLandmarkLocation(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
GetNativeContainers(out NativeHashMap<TNode, FixedList128Bytes<float>>, out NativeHashMap<TNode, FixedList128Bytes<float>>, out NativeList<TNode>, out NativeReference<bool>)
Declaration
public void GetNativeContainers(out NativeHashMap<TNode, FixedList128Bytes<float>> fromLandmarks, out NativeHashMap<TNode, FixedList128Bytes<float>> toLandmarks, out NativeList<TNode> landmarks, out NativeReference<bool> isDirected)
Parameters
Type |
Name |
Description |
NativeHashMap<TNode, FixedList128Bytes<float>> |
fromLandmarks |
|
NativeHashMap<TNode, FixedList128Bytes<float>> |
toLandmarks |
|
NativeList<TNode> |
landmarks |
|
NativeReference<bool> |
isDirected |
|
GetToKeyValueArrays(Allocator)
Declaration
public NativeKeyValueArrays<TNode, FixedList128Bytes<float>> GetToKeyValueArrays(Allocator allocator)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Returns
Type |
Description |
NativeKeyValueArrays<TNode, FixedList128Bytes<float>> |
|
Heuristic(TNode)
Declaration
public float Heuristic(TNode u)
Parameters
Type |
Name |
Description |
TNode |
u |
|
Returns
SetGoal(TNode)
Declaration
public void SetGoal(TNode goal)
Parameters
Type |
Name |
Description |
TNode |
goal |
|
Implements
Extension Methods