Function GridStringPulling.LinecastCost
LinecastCost
(List<GraphNode> trace, int2 segmentStart, int2 segmentEnd, GridGraph gg, System.Func<GraphNode, uint> traversalCost)
Cost of moving across all the nodes in the list, along the given segment.
Private
Static
uint LinecastCost (
List<GraphNode> | trace | |
int2 | segmentStart | |
int2 | segmentEnd | |
gg | ||
System.Func<GraphNode, uint> | traversalCost |
Cost of moving across all the nodes in the list, along the given segment.
It is assumed that the segment intersects the nodes. Any potentially intersecting nodes that are not part of the list will be ignored.