fn interpolate(points: &[(u32, u32)], x: u32) -> u32
Piecewise-linear lookup of x in ascending (x, y) breakpoints, clamped at both ends.
x
(x, y)