std
::
math
clamp
macro
clamp
(
x
,
lower
,
upper
)
Constrain the value to lie within the given interval.
Parameters