Function minterpolate::step_interpolate [] [src]

pub fn step_interpolate<T>(
    input: f32,
    inputs: &[f32],
    outputs: &[T],
    _: bool
) -> T where
    T: InterpolationPrimitive + Copy

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