Distance of a polyline in grid cells. Stateful rules (alternate) accumulate over the whole path, so the unit of computation is the path, not a segment; a segment's own cost is cumulative[i] - cumulative[i - 1].
alternate
cumulative[i] - cumulative[i - 1]
Optional
Distance of a polyline in grid cells. Stateful rules (
alternate) accumulate over the whole path, so the unit of computation is the path, not a segment; a segment's own cost iscumulative[i] - cumulative[i - 1].