Add clamp()
Closed this issue · 0 comments
mpetrovich commented
clamp($v, $min, $max) returns $min if $v < $min
$max if $v > $max
$v if $min <= $v <= $max
Closed this issue · 0 comments
clamp($v, $min, $max) returns $min if $v < $min
$max if $v > $max
$v if $min <= $v <= $max