fn lerp(pct: f64, (x1, x2): (f32, f32)) -> f32