Codebox Operators clamp

clamp

Clip an input to a range within an upper and lower bound.

clamp(in1, in2, in3): out1

Arguments:

Arguments

NameTypeDefaultDescription
in1number

The input to be clipped.

in2number

Sets the lower bound of the clip.

in3number

Sets the upper bound of the clip.

Returns

NameTypeDescription
out1number

The clipped output.

Aliases

  • clip