Crates.io | neighborgrid |
lib.rs | neighborgrid |
version | 0.1.0 |
source | src |
created_at | 2023-06-11 22:34:11.551383 |
updated_at | 2023-06-11 22:34:11.551383 |
description | A 2-D grid datastructure with easy to use iterators and adjacent cell methods |
homepage | |
repository | https://github.com/TimLikesTacos/neighborgrid |
max_upload_size | |
id | 887597 |
size | 89,832 |
A collection that represents a 2-D grid with equal amount of cells in each row and equal number of cells in each column. Supports different origin (location of 0,0) configurations, and includes methods to get neighbors of cells, iterators, and more. Behind the scenes, the data is stored in a 1-D Vec
to improve performance, but interaction with grid is done through normal (x,y) grid location methods.
See the documentation for more details.
This has just been a result of messing around with grid problem, nothing high-end scientific / mathmatical / or production based. Enjoy!