arcade2d
Interface

WithinOptions

geometry/grid.types.ts:100

Options for Grid.within, the radius/area query.

Properties

#
includeCenter?: boolean

Whether the centre cell is included in the result. Defaults to true.

#
metric?: GridMetric

Which GridMetric defines the radius. Defaults to 'manhattan' (a diamond), matching 4-connected movement.

#
wrap?: boolean

When true, the area wraps across grid edges (toroidal). Defaults to false.

ESC