asobi_spatial_grid (asobi v0.35.4)
View SourceSummary
Types
-type grid() :: #{cell_size := number(), cells := #{cell_coords() => #{binary() => pos()}}, entity_cells := #{binary() => cell_coords()}}.
Functions
-spec entities_in_cell(cell_coords(), grid()) -> [{binary(), pos()}].
-spec size(grid()) -> non_neg_integer().