Clamps an input to the range 0, 1]. You can use this range to represent percentages and other relative measurements in calculations. ...

Clamps an input to the range [0, 1]. You can use this range to represent percentages and other relative measurements in calculations. For each component of the result, the corresponding component values that are less than 0 are made equal to 0, values that are larger than 1 are made equal to 1, and values that are in the range are not changed.