CLAMP

THE BOX'S MAIN HELP:
This function clamps A to the range [min, max].
The data type returned will be the same type as the inputs.

A (input):
Value to be clamped.
This may be a float, point, normal, vector or color, 
but all inputs be of the same type.

MIN (input):
This is the minimum value to clamp A.
This may be a float, point, normal, vector or color, 
but all inputs be of the same type.

MAX (input):
This is the maximum value to clamp A.
This may be a float, point, normal, vector or color, 
but all inputs be of the same type.

OUT (output):
This function clamps A to the range [MIN, MAX].
The data type returned will be of the same type as the inputs.

<-- BACK TO Math

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.