#2d-grid #grid #2d #data-access #sparse-grid

sark_grids

A set of grids for storing and accessing data in a grid-like way

22 releases

0.5.9 Mar 17, 2024
0.5.8 Jul 12, 2023
0.5.7 Mar 6, 2023
0.5.6 Dec 27, 2022
0.2.6 Mar 8, 2022

#9 in #2d-grid

Download history 8/week @ 2024-02-11 15/week @ 2024-02-18 60/week @ 2024-02-25 52/week @ 2024-03-03 65/week @ 2024-03-10 179/week @ 2024-03-17 35/week @ 2024-03-24 97/week @ 2024-03-31 36/week @ 2024-04-07 32/week @ 2024-04-14 23/week @ 2024-04-21 29/week @ 2024-04-28 5/week @ 2024-05-05 15/week @ 2024-05-12 29/week @ 2024-05-19 32/week @ 2024-05-26

86 downloads per month
Used in 5 crates (3 directly)

MIT license

110KB
2.5K SLoC

License: MIT Crates.io docs

A set of grids for storing and accessing data in a grid-like way.

This crate provides three types of grids:

  • Grid: A dense grid that stores it's internal data in a Vec. The size of the grid is constant and elements cannot be removed, only changed. Provides fast iteration and access speed.

  • SparseGrid: A grid that stores it's internal data in a BTreeMap. Elements don't take up any memory until they're inserted and can be removed as needed, but iteration and access speed will be slower than a Grid for large full grids.

  • WorldGrid: A utility for translating between aligned grid points and world space.


lib.rs:

A set of grids for storing and accessing data in a grid-like way.

Dependencies

~3MB
~94K SLoC