spiral
A Rust Library for iterating over 2D structures in spiral patterns
Documentation
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
And this to your crate root:
extern crate spiral;
Examples
let center_x = 3;
let center_y = 3;
let radius = 4;
for in new