pub fn step_interpolate<T>(input: f32, inputs: &[f32], outputs: &[T], _: bool) -> Twhere
    T: InterpolationPrimitive + Clone,
Expand description

Do step interpolation.

Step interpolation will remain on a keyframe until the next keyframe is reached, and then step to that keyframe.

Parameters:

  • input: the input value to the function
  • inputs: list of discrete input values for each keyframe
  • outputs: list of output values to interpolate between, for step interpolation this should be the same size as inputs
  • normalize: if true, normalize the interpolated value before returning it