pub fn clamped_lerp<T>(min: T, max: T, factor: T) -> TExpand description
Clamped linear interpolation.
Clamps the interpolation factor to [0, 1] before interpolating.
Java reference: Mth.clampedLerp(double, double, double).
Note: Vanilla’s parameter order is (factor, min, max), ours is (min, max, factor).