Compartir a través de


RectEvaluator.Evaluate(Single, Rect, Rect) Method

Definition

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

[Android.Runtime.Register("evaluate", "(FLandroid/graphics/Rect;Landroid/graphics/Rect;)Landroid/graphics/Rect;", "GetEvaluate_FLandroid_graphics_Rect_Landroid_graphics_Rect_Handler")]
public virtual Android.Graphics.Rect? Evaluate (float fraction, Android.Graphics.Rect? startValue, Android.Graphics.Rect? endValue);
[<Android.Runtime.Register("evaluate", "(FLandroid/graphics/Rect;Landroid/graphics/Rect;)Landroid/graphics/Rect;", "GetEvaluate_FLandroid_graphics_Rect_Landroid_graphics_Rect_Handler")>]
abstract member Evaluate : single * Android.Graphics.Rect * Android.Graphics.Rect -> Android.Graphics.Rect
override this.Evaluate : single * Android.Graphics.Rect * Android.Graphics.Rect -> Android.Graphics.Rect

Parameters

fraction
Single

The fraction from the starting to the ending values

startValue
Rect

The start Rect

endValue
Rect

The end Rect

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 Rect values, with fraction representing the proportion between the start and end values. The calculation is a simple parametric calculation on each of the separate components in the Rect objects (left, top, right, and bottom).

If #RectEvaluator(android.graphics.Rect) was used to construct this RectEvaluator, the object returned will be the reuseRect passed into the constructor.

Java documentation for android.animation.RectEvaluator.evaluate(float, android.graphics.Rect, android.graphics.Rect).

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