#gamedev #direction #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

#292 in Math

43 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
~23K SLoC