Class PathHeuristics
This class provides some heuristics used for routing
capabilities within the ISpatialGraphEnvironment.
Inheritance
System.Object
PathHeuristics
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Environments
Assembly: Mars.Components.dll
Syntax
public static class PathHeuristics
Methods
| Improve this Doc View SourceShortest(ISpatialNode, ISpatialEdge, ISpatialNode)
Calculates the length for an edge, used as heuristic,
to navigate through the graph by expanding,
each next node which leads to the shortest next section.
Declaration
public static double Shortest(ISpatialNode source, ISpatialEdge edge, ISpatialNode target)
Parameters
Type | Name | Description |
---|---|---|
ISpatialNode | source | The source node of the route planning |
ISpatialEdge | edge | The intermediate edge, from which to decide the next expandable node. |
ISpatialNode | target | The target node of the route planning |
Returns
Type | Description |
---|---|
System.Double | Returns length for the edge. |