Function minterpolate::step_interpolate
source · 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 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