4 releases (breaking)
Uses new Rust 2024
| 0.4.0 | Oct 18, 2025 |
|---|---|
| 0.3.0 | Sep 6, 2025 |
| 0.2.0 | Jun 29, 2025 |
| 0.1.0 | Jun 15, 2025 |
#1906 in Algorithms
Used in 2 crates
14KB
230 lines
A simple implementation of cardinal and ordinal directions, as the
canonical direction crate bakes in some notions of coordinates that
seem better separated to allow for different grid systems.
Endgame Direction
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.
Dependencies
~2.1–4MB
~69K SLoC