跳到主要内容

math.lerp

线性插值

声明

float math.lerp(mixed from, mixed to, float val)

参数

参数名描述
from起始值
to结束值
val插值值

返回值

插值后的值

使用方式

返回文档