Method InterpAnimationCurve
InterpAnimationCurve(ref AnimationCurve, AnimationCurve, float)
Interpolates two AnimationCurves. Since both curves likely have control points at different places in the curve, this method will create a new curve from the union of times between both curves. However, to avoid creating garbage, this function will always replace the keys of lhsAndResultCurve with the final result, and return lhsAndResultCurve.
Declaration
public static void InterpAnimationCurve(ref AnimationCurve lhsAndResultCurve, AnimationCurve rhsCurve, float t)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | lhsAndResultCurve | The start value. Additionaly, this instance will be reused and returned as the result. |
AnimationCurve | rhsCurve | The end value. |
float | t | The interpolation factor in range [0,1]. |