Cost after each waypoint; cumulative[0] === 0, one entry per point.
cumulative[0] === 0
Square-grid diagonal steps at the end, including startDiagonals; 0 on hex, gridless, euclidean.
startDiagonals
Cost of the whole path in cells.
Cost after each waypoint;
cumulative[0] === 0, one entry per point.