다음을 통해 공유


FloatEvaluator.Evaluate Method

Definition

Overloads

Evaluate(Single, Number, Number)

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, Number, Number)

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

Parameters

fraction
Single

The fraction from the starting to the ending values

startValue
Number

The start value; should be of type float or Float

endValue
Number

The end value; should be of type float or Float

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

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