Expand description
This crate is a (so far tiny) collection of iterator types useful in implementing grid-based algorithms.
Currently only Bresenham’s and Perimeter iterators are available.
Structs§
- Bresenham
Iter - Iterator that uses Bresenham’s algorithm to yield grid points on a segment between two given points.
- Perimeter
Iter - Iterator that yields points at the perimeter of a rect on a grid, clockwise.
Traits§
- Coord
- Trait for grid coordinates used by iterators. Implemented for every built-in integer type.