#gamedev

aglet

Opinionated integer-based coordinates and directions and utilities

11 releases (4 breaking)

0.5.1 Jan 17, 2023
0.5.0 Jan 17, 2023
0.4.0 Jan 9, 2023
0.3.4 Oct 14, 2022
0.1.0 Jul 23, 2022

#541 in Math

Download history 7/week @ 2023-07-29 12/week @ 2023-08-05 28/week @ 2023-08-12 15/week @ 2023-08-19 28/week @ 2023-08-26 20/week @ 2023-09-02 15/week @ 2023-09-09 9/week @ 2023-09-16 4/week @ 2023-09-23 11/week @ 2023-09-30 9/week @ 2023-10-07 14/week @ 2023-10-14 14/week @ 2023-10-21 26/week @ 2023-10-28 14/week @ 2023-11-04 14/week @ 2023-11-11

69 downloads per month
Used in palkia

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.5–1MB
~25K SLoC