pub(crate) fn triangle_kernel(x: f32) -> f32
Expand description

Calculate the triangle function. Also known as BiLinear sampling in two dimensions.