endgame_direction

Crates.ioendgame_direction
lib.rsendgame_direction
version0.3.0
created_at2025-06-15 01:19:59.498884+00
updated_at2025-09-06 21:24:39.388228+00
descriptionA library for representing cardinal and ordinal directions.
homepage
repositoryhttps://github.com/gawashburn/endgame
max_upload_size
id1712818
size27,686
(gawashburn)

documentation

README

Endgame Direction

License: MIT Crates.io version

The endgame_direction crate provides an implementation of cardinal and ordinal directions. It can be used independently of the rest of the Endgame library.

Part of the motivation for creating this crate was that the canonical direction crate bakes in some a coordinates, while the Endgame library provides it own support for grid coordinate systems.

Future work

  • It could make sense to extend the set of directions to include the secondary intercardinal directions (West-northwest, etc.). The primary use case for this currently would be to support all possible vertex directions on a triangular grid in endgame_grid.
  • It might make sense to add localized text for the directions names.
Commit count: 27

cargo fmt