Clamp Node

clamp node

Clamps a number x between min and max.

Inputs:

  • x: The number to clamp.
  • min and max: The minimum and maximum to clamp the number between.

Outputs:

  • out: The number x clamped between min and max. If x is less than min, outputs min. If x is greater than max, outputs max. Otherwise, outputs x.