IntEvaluator.Evaluate Method

Definition

Overloads

Evaluate(Single, Integer, Integer)

This function returns the result of linearly interpolating the start and end values, with fraction representing the proportion between the start and end values.

Evaluate(Single, Object, Object)

Evaluate(Single, Integer, Integer)

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/Integer;Ljava/lang/Integer;)Ljava/lang/Integer;", "GetEvaluate_FLjava_lang_Integer_Ljava_lang_Integer_Handler")]
public virtual Java.Lang.Integer? Evaluate (float fraction, Java.Lang.Integer? startValue, Java.Lang.Integer? endValue);
[<Android.Runtime.Register("evaluate", "(FLjava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Integer;", "GetEvaluate_FLjava_lang_Integer_Ljava_lang_Integer_Handler")>]
abstract member Evaluate : single * Java.Lang.Integer * Java.Lang.Integer -> Java.Lang.Integer
override this.Evaluate : single * Java.Lang.Integer * Java.Lang.Integer -> Java.Lang.Integer

Parameters

fraction
Single

The fraction from the starting to the ending values

startValue
Integer

The start value; should be of type int or Integer

endValue
Integer

The end value; should be of type int or Integer

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.IntEvaluator.evaluate(float, java.lang.Integer, java.lang.Integer).

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.

Applies to

Evaluate(Single, Object, Object)

public virtual Java.Lang.Object? Evaluate (float fraction, Java.Lang.Object? startValue, Java.Lang.Object? endValue);
abstract member Evaluate : single * Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
override this.Evaluate : single * Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object

Parameters

fraction
Single
startValue
Object
endValue
Object

Returns

Implements

Remarks

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.

Applies to