语言

PathInterpolator.GetInterpolation(Single) 方法

定义

使用此内插器中可描述为 y = f(x)的路径中的线条,查找给定 t 为 x 坐标的线条的 y 坐标。

[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 坐标。

返回

路径沿 x = t的行的 y 坐标。

实现

特性

注解

使用此内插器中可描述为 y = f(x)的路径中的线条,查找给定 t 为 x 坐标的线条的 y 坐标。 小于 0 的值将始终返回 0,大于 1 的值将始终返回 1。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅