Skip to content

format

typescript
Mathf.LerpUnclamped(left, right, t)

class: Mathf

description

Linearly interpolates between the left and right values using t, with no restriction on t.

parameter

param_nametypedescription
leftnumberThe left value.
rightnumberThe right value.
tnumberThe interpolation value.

return

typedescription
numberThe floating-point result of the linear interpolation.

code example

typescript
// Linearly interpolates between q1 and q2 using t.
let lerpUnclamped = Mathf.LerpUnclamped(0,10,1.2) //lerpUnclamped=12