Skip to main content

interpolate_value

Function interpolate_value 

Source
pub fn interpolate_value(
    start: f64,
    end: f64,
    t: f64,
    interpolation: &Interpolation,
) -> f64
Expand description

Interpolate a single value between keyframes

§Arguments

  • start - Start value
  • end - End value
  • t - Normalized time (0.0 to 1.0)
  • interpolation - Easing function

§Returns

Interpolated value