Grid Index
Functions
Section titled “Functions”getGridIndexesBetween()
Section titled “getGridIndexesBetween()”getGridIndexesBetween(
gridIndex1,gridIndex2,roomShape): readonlyint[]
Defined in: packages/isaacscript-common/src/functions/gridIndex.ts:14
Helper function to get all of the grid indexes between two grid indexes on either a horizontal or vertical line, inclusive on both ends.
If the first grid index is greater than the second grid index, the two will be swapped.
This function will throw a run-time error if the two provided grid indexes are not on the same horizontal or vertical line.
Parameters
Section titled “Parameters”gridIndex1
Section titled “gridIndex1”int
gridIndex2
Section titled “gridIndex2”int
roomShape
Section titled “roomShape”RoomShape
Returns
Section titled “Returns”readonly int[]
