Skip to content

five-on-it / packages/missions/src/zones / zoneCells

Function: zoneCells() ​

zoneCells(area, cell): object[]

Defined in: packages/missions/src/zones.ts:64

The cells a zone is split into for a search (search_area): the centres of the squares cell metres wide over its bounds that lie inside it, row by row (at least its middle); wider squares when there would be more than MAX_SEARCH_CELLS.

Parameters ​

area ​

ZoneArea

cell ​

number

Returns ​

object[]