spiral
Documentation
Iterators to iterate 2D structures in spiral patterns
Usage
This crate is on crates.io and can be used by adding
spiral
to the dependencies in your project's Cargo.toml
.
[]
= "0.2"
Examples
use ChebyshevIterator;
let center_x = 3;
let center_y = 3;
let radius = 4;
let iterator = new;
for in iterator
use ManhattanIterator;
let center_x = 3;
let center_y = 3;
let radius = 4;
for in new