fn trilinear(src: &[f64], n: [usize; 3], coords: &[Vec<f64>; 3]) -> Vec<f64>Expand description
Separable trilinear interpolation (MATLAB interp3(..., 'linear')): coords[d] are 1-based
fractional source indices along axis d, one output sample per entry, output in the same
Fortran order. Samples outside [1, n] on any axis are 0.