ITypeEvaluator.Evaluate(Single, Object, Object) 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.
This function returns the result of linearly interpolating the start and end values, with
fraction
representing the proportion between the start and end values.
[Android.Runtime.Register("evaluate", "(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetEvaluate_FLjava_lang_Object_Ljava_lang_Object_Handler:Android.Animation.ITypeEvaluatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? Evaluate (float fraction, Java.Lang.Object? startValue, Java.Lang.Object? endValue);
[<Android.Runtime.Register("evaluate", "(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetEvaluate_FLjava_lang_Object_Ljava_lang_Object_Handler:Android.Animation.ITypeEvaluatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Evaluate : single * Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
Parameters
- fraction
- Single
The fraction from the starting to the ending values
- startValue
- Object
The start value.
- endValue
- Object
The end value.
Returns
A linear interpolation between the start and end values, given the
fraction
parameter.
- Attributes
Remarks
This function returns the result of linearly interpolating the start and end values, with fraction
representing the proportion between the start and end values. The calculation is a simple parametric calculation: result = x0 + t * (x1 - x0)
, where x0
is startValue
, x1
is endValue
, and t
is fraction
.
Java documentation for android.animation.TypeEvaluator.evaluate(float, T, T)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.