pub(crate) fn triangle_kernel(x: f32) -> f32
Calculate the triangle function. Also known as BiLinear sampling in two dimensions.
BiLinear