pub fn bilinear_sample( data: &[f32], width: usize, height: usize, u: f32, v: f32, ) -> f32
Bilinear interpolation of a 2D value grid