pub fn swizzle(index: usize, num_steps: usize, step_length: u32) -> Coords2d
Maps a linear index to 2D zigzag coordinates (x, y) within strips of num_steps steps of step_length (> 0) elements each.
index
(x, y)
num_steps
step_length