Crate nav

Source
Expand description

Nav is a very simple utility library providing types for working with cardinal directions and transformations.

Enums§

Direction
The four cardinal directions: North, East, South, and West.
Transform
The eight transformations that can be applied to a 2D grid.

Constants§

ALL_DIRECTIONS
All cardinal directions in their order of definition.
ALL_TRANSFORMS
All transformations in their order of definition.