Skip to main content

Function: getNextCellOnLayer()

getNextCellOnLayer(i, j, wefts, warps, layer, direction, cns): { i: number; j: number; } | null

Defined in: simulation/simulation.ts:422

used when parsing the CN graph, this function looks at the next cell in some direction to determine if it should assign ACNs to any of it's edges.

Parameters

i

number

the row index of the cell at which we are starting the search

j

number

the col index of the cell we are starting the search at.

wefts

number

warps

number

layer

number

direction

string

cns

ContactNeighborhood[]

Returns

{ i: number; j: number; } | null