CLAMP |
THE BOX'S MAIN HELP: This function clamps A to the range [MIN, MAX]. Returns MIN if A < MIN or MAX if A > MAX otherwise it returns A. The data type returned will be the same type as the inputs. All inputs must be of the same type. A (input): This is the value to be clamped. Returns MIN if A < MIN or MAX if A > MAX otherwise it returns A. The input may be a scalar, vector or color. All inputs must be of the same type. MIN (input): This is the minimum value for A. Returns MIN if A < MIN or MAX if A > MAX otherwise it returns A. The input may be a scalar, vector or color. All inputs must be of the same type. MAX (input): This is the maximum value for A. Returns MIN if A < MIN or MAX if A > MAX otherwise it returns A. The input may be a scalar, vector or color. All inputs must be of the same type. OUT (output): This function clamps A to the range [MIN, MAX]. Returns MIN if A < MIN or MAX if A > MAX otherwise it returns A. The data type returned will be of the same type as the inputs. |
© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.