Skip to main content

walk_edge

Function walk_edge 

Source
pub fn walk_edge(
    start: (f64, f64),
    end: (f64, f64),
    deg: f64,
    visit: &mut impl FnMut(f64, f64),
)
Expand description

Walks the segment start→end in deg-sized steps at 2× oversampling (the rasterizer’s edge density), visiting every interpolated point including both endpoints. Cell membership per point is utz_common::grid_cell(); the sweep tools share this walk so a change to the sampling density cannot leave them measuring a different rasterization than the encoder’s.