Module tapestry::patterns [−][src]
Iterators over common Coord
shapes and patterns.
These patterns have no dependencies on actual cell data. Their intended use
is for ultimately passing into
Grid::selection_iter
or
Grid::selection_iter_mut
to obtain
actual cell values.
Structs
ClusterLayers | Represents various layers of a selection of coords (cluster). |
Functions
cluster_layers | Sorts a selection of coords into buckets representing a few fixed layers. |
diag_neighborhood | Returns the diagonal neighborhood of |
line | Traces Bresenham’s line algorithm between |
neighborhood | Returns the orthogonal and diagonal (Moore) neighborhood of |
ortho_neighborhood | Returns the orthogonal (Von Neumann) neighborhood of |