AnimationExtensions.Interpolate(Double, Double, Double, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
Public Function Interpolate (start As Double, Optional end As Double = 1, Optional reverseVal As Double = 0, Optional reverse As Boolean = false) As Func(Of Double, Double)
Parameters
- start
- Double
The fraction into the current animation at which to start the animation.
- end
- Double
The fraction into the current animation at which to stop the animation.
- reverseVal
- Double
The inverse scale factor to use if reverse
is true
.
- reverse
- Boolean
Whether to use the inverse scale factor in reverseVal
to deinterpolate.
Returns
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
.