Returns the cells on the line of start and end, inclusive
start
end
// Get cells that connect 0,0 and 10,10const cells = Grids.getLine({x:0,y:0}, {x:10,y:10}); Copy
// Get cells that connect 0,0 and 10,10const cells = Grids.getLine({x:0,y:0}, {x:10,y:10});
This function does not handle wrapped coordinates.
Starting cell
End cell
Returns the cells on the line of
start
andend
, inclusiveThis function does not handle wrapped coordinates.