#gamedev #math

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

#305 in Math

Download history 38/week @ 2022-10-12 15/week @ 2022-10-19 9/week @ 2022-10-26 30/week @ 2022-11-02 5/week @ 2022-11-09 8/week @ 2022-11-16 3/week @ 2022-11-23 6/week @ 2022-11-30 8/week @ 2022-12-07 11/week @ 2022-12-14 16/week @ 2022-12-21 6/week @ 2022-12-28 27/week @ 2023-01-04 51/week @ 2023-01-11 34/week @ 2023-01-18 17/week @ 2023-01-25

130 downloads per month
Used in palkia

MIT license

39KB
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