Sonolus Wiki

Clamp

Clamp value between minimum and maximum.

Arguments

ArgumentDescription
xValue
aMinimum
bMaximum

Return

a if x is less than a, b if x is greater than b, x otherwise.