Function ulam::value_of_coord
source · [−]Expand description
Get the value from the ulam spiral given a Quad and a Coord.
Examples
use ulam::{Coord, Quad};
let c1 = Coord::new(0, 1);
let result = ulam::get_ulam_deets(&c1);
assert_eq!(result.quad, Quad::North);