Skip to content

格式

typescript
Mathf.LerpUnclamped(left, right, t)

所属类: Mathf

描述

通过t在left和right之间线性插值,对t没有限制。

参数

参数名类型描述
leftnumber左值
rightnumber右值
tnumber插值

返回值

类型描述
number线性插值的浮点值结果

代码示例

typescript
//通过t在q1和q2之间进行线性插值
let lerpUnclamped = Mathf.LerpUnclamped(0,10,1.2) //lerpUnclamped=12