Documentation / base / smoothStep
Function: smoothStep()
smoothStep(
from,to,t):number
Defined in: libs/base/src/math/misc.ts:112
Smoothstep interpolation function.
Performs smooth Hermite interpolation between 0 and 1 when t is within [from, to]. The result is clamped to [0, 1], with zero first derivatives at both ends (ease-in-out).
Parameters
from
number
The lower edge of the interpolation range (maps to 0).
to
number
The upper edge of the interpolation range (maps to 1).
t
number
The input value.
Returns
number
A smoothly interpolated value between 0 and 1.