Skip to content

clamp

clamp(pValue, pMin, pMax): number

Clamp a number

Parameters

pValue: number

pMin: number

pMax: number

Returns

number

Source

src/utils/MathUtils.ts:7