Skip to main content

Function: clamp01()

clamp01(t): number

Defined in: util/clamp.ts:14

Shorthand for clamp(t, 0, 1), commonly used to normalize tween progress.

Parameters

t

number

Returns

number