語言

PathInterpolator.GetInterpolation(Single) 方法

定義

利用此插值器中可描述 y = f(x)為 的路徑線,可找到該直線的 y 座標,該直線 t 為 x 座標。

[Android.Runtime.Register("getInterpolation", "(F)F", "GetGetInterpolation_FHandler")]
public override float GetInterpolation(float t);
[<Android.Runtime.Register("getInterpolation", "(F)F", "GetGetInterpolation_FHandler")>]
override this.GetInterpolation : single -> single

參數

t
Single

以直線上的 x 座標來處理。

傳回

路徑沿直線的 y 座標,其中 x = t。

實作

屬性

備註

利用此插值器中可描述 y = f(x)為 的路徑線,可找到該直線的 y 座標,該直線 t 為 x 座標。 小於 0 的值總是回傳 0,大於 1 的值總是回傳 1。

Java 文件 android.view.animation.PathInterpolator.getInterpolation(float)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱