mooreNeighborhood

Returns an array with the 1st order Moore neighborhood for the given core cell.

set the top row of the neighborhood neighborhood0 = getCell(i-1, j-1) neighborhood1 = getCell(i-1, j) neighborhood2 = getCell(i-1, j+1)

set the middle row of the neighborhood neighborhood0 = getCell(i, j-1) neighborhood1 = getCell(i, j) neighborhood2 = getCell(i, j+1)

set the bottom row of the neighborhood neighborhood0 = getCell(i+1,j-1) neighborhood1 = getCell(i+1, j) neighborhood2 = getCell(i+1, j+1)

Parameters

coreCell

Fills the supplied array with the 1st order Moore neighborhood for the given core cell.

set the top row of the neighborhood neighborhood0 = getCell(i-1, j-1) neighborhood1 = getCell(i-1, j) neighborhood2 = getCell(i-1, j+1)

set the middle row of the neighborhood neighborhood0 = getCell(i, j-1) neighborhood1 = getCell(i, j) neighborhood2 = getCell(i, j+1)

set the bottom row of the neighborhood neighborhood0 = getCell(i+1,j-1) neighborhood1 = getCell(i+1, j) neighborhood2 = getCell(i+1, j+1)

Parameters

coreCell
neighborhood