PointFEvaluator.Evaluate(Single, PointF, PointF) Method

Definition

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

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

Parameters

fraction
Single

The fraction from the starting to the ending values

startValue
PointF

The start PointF

endValue
PointF

The end PointF

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 PointF 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 PointF objects (x, y).

If #PointFEvaluator(android.graphics.PointF) was used to construct this PointFEvaluator, the object returned will be the reuse passed into the constructor.

Java documentation for android.animation.PointFEvaluator.evaluate(float, android.graphics.PointF, android.graphics.PointF).

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