alloy::math

Function cosine

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

Interpolates between two values using a cosine interpolation.

ยงParameters

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