clamp

Clamp x in [min, max].

pure nothrow @safe @nogc
T
clamp
(
T
)
(
T x
,
T min
,
T max
)

Meta