clamp a number to inclusive min and max intervals. you can also provide a type alias for the output interval OutInterval number through the use of the generic parameter.
number
min
max
OutInterval
value to clamp
inclusive minimum of the interval
inclusive maximum of the interval
clamp a
number
to inclusivemin
andmax
intervals.you can also provide a type alias for the output interval
OutInterval
number through the use of the generic parameter.