Crate grid_util

Source
Expand description

§grid_util

Collection of utility constructs like Grid’s, Point’s, Rect’s, etc. All are geared towards a 2D grid with integer coordinates.

Re-exports§

pub use direction::Direction;
pub use grid::BoolGrid;
pub use grid::Grid;
pub use grid::SimpleGrid;
pub use point::Point;
pub use rect::Rect;

Modules§

direction
Discrete Direction construct useful in grid-based algorithms and things like roguelikes.
grid
Grid trait abstracting over grid-like containers along with two implementors BoolGrid and SimpleGrid.
point
2D grid Point with an expressive API and overloaded operators.
rect
Discrete 2D Rect with support for some common operations like splitting and intersections tests.