Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

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

Returns a value limited to the specified range.

Warning: This macro evaluates its arguments more than once.

Parameters

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

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