Clamp Node
Clamps a number x
between min
and max
.
Inputs:
x
: The number to clamp.min
andmax
: The minimum and maximum to clamp the number between.
Outputs:
out
: The numberx
clamped betweenmin
andmax
. Ifx
is less thanmin
, outputsmin
. Ifx
is greater thanmax
, outputsmax
. Otherwise, outputsx
.