Function GridStringPulling.LinecastCost
        
                LinecastCost
        
                (List<GraphNode> trace, int2 segmentStart, int2 segmentEnd, GridGraph gg, refTraversalCosts traversalCosts)
    
            
            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  |         ||
traversalCosts  |         
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.