alloy::math

Function linear

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

Linearly interpolates between two values.

ยงParameters

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