Share via


AnimationExtensions.Interpolate(Double, Double, Double, Boolean) Method

Definition

Returns a function that performs a linear interpolation between start and end.

public static Func<double,double> Interpolate (double start, double end = 1, double reverseVal = 0, bool reverse = false);
static member Interpolate : double * double * double * bool -> Func<double, double>

Parameters

start
System.Double

The fraction into the current animation at which to start the animation.

end
System.Double

The fraction into the current animation at which to stop the animation.

reverseVal
System.Double

The inverse scale factor to use if reverse is true.

reverse
System.Boolean

Whether to use the inverse scale factor in reverseVal to deinterpolate.

Returns

System.Func<System.Double,System.Double>

A function that performs a linear interpolation between start and end. Application developers can pass values between 0.0f and 1.0f to this function in order to recieve a value that is offset from start or end, depending on the value of reverse, by the passed value times the distance between start and end.

Remarks

If reverse is true, then the interpolation happens between start and reverseVal.

Applies to