pub(in worldgen::feature) fn lerp<F>( alpha: F, a: F, b: F, ) -> Fwhere F: Copy + Mul<Output = F> + Add<Output = F> + Sub<Output = F>,
Linear interpolation.
Formula: a + alpha * (b - a)
Java reference: Mth.lerp(double, double, double)
Mth.lerp(double, double, double)