Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kClamp_ | ( |  | V,
|  |  | VMIN,
|  |  | VMAX
| ) |  | kxClamp_((V), (VMIN), (VMAX))

Returns a value limited to the specified range.

Parameters

  V | Input value.
  VMIN | Minimum output value.
  VMAX | Maximum output value.

Returns
  The input value, limited to [VMIN, VMAX].