Skip to content

@web-engine-dev/math


@web-engine-dev/math / clamp

Function: clamp()

clamp(value, min, max): number

Clamps a value between min and max.

Parameters

value

number

Value to clamp

min

number

Minimum bound

max

number

Maximum bound

Returns

number

Proprietary software. All rights reserved.