[−][src]Function minterpolate::step_interpolate
pub fn step_interpolate<T>(
input: f32,
inputs: &[f32],
outputs: &[T],
_: bool
) -> T where
T: InterpolationPrimitive + Clone,
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 functioninputs
: list of discrete input values for each keyframeoutputs
: list of output values to interpolate between, for step interpolation this should be the same size asinputs
normalize
: if true, normalize the interpolated value before returning it