clip

(function for equations)

 

Usage:

clip (min, max, x)

Definition:

(x < min) ? min : (x > max) ? max : x

Required:

minmax

Returns x, unless it is less than min (in which case it returns min), or more than max (in which case it returns max).

See also max, min, and rect.