Function getLine

Returns the cells on the line of start and end, inclusive

// Get cells that connect 0,0 and 10,10
const cells = Grids.getLine({x:0,y:0}, {x:10,y:10});

This function does not handle wrapped coordinates.

  • Parameters

    • start: Cell

      Starting cell

    • end: Cell

      End cell

    Returns readonly Cell[]