beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

Clamp Op

Clamp

Makes sure a value is within range cuts off the rest



Edit Documentation

Full Name
  • Ops.Math.Clamp
Visibility
  • Core Op - Official cables op
AuthorTest Patches


 

INPUT PORTS


val (Number)

The number you want to make sure is in range [Minimum, Maximum]

min (Number)

The minimum the Result will be

max (Number)

The maximum the Result will be

ignore outside values (Number:boolean )

OUTPUT PORTS


result (Number)

The clamped value of Val


Usages of Clamp

  • Examples
  • Public
  • My Patches
  • Ops