alloy::math

Function smoothstep

source
pub fn smoothstep<T, U>(start: &T, end: &U, alpha: f32) -> T::Output
where T: Lerp<U>,
Expand description

Interpolates between two values using a smoothstep interpolation.

ยงParameters

  • start - The starting state.
  • end - The ending state.
  • alpha - The interpolation factor.