alloy::math

Function quadratic

source
pub fn quadratic<T>(start: &T, intermediate: &T, end: &T, alpha: f32) -> T
where T: Lerp<Output = T> + Mul<f32, Output = T> + Add<T, Output = T>,
Expand description

Quadratically interpolates between three values.

ยงParameters

  • start - The starting state.
  • intermediate - The intermediate value.
  • end - The end state.
  • alpha - The interpolation factor.