clampValues method
Composes a function that clamps, point-wise, this function's field result between two values.
The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.
The function result has no data where this function's field result has no data.
The function result has no data where max is less than min.
The function result extent equals that of this function's field result.
Parameters:
min— The lower-bound value to clamp to.max— The upper-bound value to clamp to.
Return Value: A function that clamps, point-wise, this function's field result between two values.