Skip to content

clamp

clamp(pValue, pMin, pMax): number

Defined in: utils/math.ts:7

Clamp a number

Parameters

pValue

number

pMin

number

pMax

number

Returns

number