Skip to main content

moore_curve

Function moore_curve 

Source
pub fn moore_curve(order: u32) -> Vec<Vec2>
Expand description

Moore curve: the closed variant of the Hilbert curve (last point adjacent to the first), unit grid steps.

§Panics

Panics unless 1 <= order <= 8.