clamp MethodStatic

Clamp value to (min,max) with no test for order of (min,max)

clamp(value: number, min: number, max: number): number

Parameter Type Description
value number value to clamp
min number smallest allowed output
max number largest allowed result.

Returns - number

Defined in

Last Updated: 11 June, 2024