#direction #gamedev #coordinates #grid #iterator #opinionated

aglet

Opinionated integer-based coordinates and directions and utilities

12 releases

0.5.2 Dec 28, 2023
0.5.1 Jan 17, 2023
0.4.0 Jan 9, 2023
0.3.4 Oct 14, 2022
0.1.0 Jul 23, 2022

#519 in Math

Download history 7/week @ 2024-11-15 13/week @ 2024-11-22 9/week @ 2024-11-29 31/week @ 2024-12-06 11/week @ 2024-12-13 4/week @ 2024-12-20 29/week @ 2024-12-27 2/week @ 2025-01-17 2/week @ 2025-01-24 2/week @ 2025-01-31 7/week @ 2025-02-07 23/week @ 2025-02-14 7/week @ 2025-02-21 18/week @ 2025-02-28

56 downloads per month
Used in 2 crates

MIT license

40KB
1K SLoC

Another Grid Library Except Terrible

This is a successor to my old crate cogs_gamedev's grids module. It adds opinionated integer-based coordinates and directions, along with some other useful things:

  • Iterators over areas, edges of areas, and lines
  • Grid<T>, which is like a HashMap<Coord, T> but faster

Also supports serde, under the default feature serde.

Dependencies

~0.4–1MB
~21K SLoC