Share via


ITimeInterpolator.GetInterpolation(Single) Method

Definition

Maps a value representing the elapsed fraction of an animation to a value that represents the interpolated fraction.

[Android.Runtime.Register("getInterpolation", "(F)F", "GetGetInterpolation_FHandler:Android.Animation.ITimeInterpolatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public float GetInterpolation (float input);
[<Android.Runtime.Register("getInterpolation", "(F)F", "GetGetInterpolation_FHandler:Android.Animation.ITimeInterpolatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetInterpolation : single -> single

Parameters

input
Single

A value between 0 and 1.0 indicating our current point in the animation where 0 represents the start and 1.0 represents the end

Returns

The interpolation value. This value can be more than 1.0 for interpolators which overshoot their targets, or less than 0 for interpolators that undershoot their targets.

Attributes

Remarks

Maps a value representing the elapsed fraction of an animation to a value that represents the interpolated fraction. This interpolated value is then multiplied by the change in value of an animation to derive the animated value at the current elapsed animation time.

Java documentation for android.animation.TimeInterpolator.getInterpolation(float).

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