clamp

Clamp x in [min, max], akin to GLSL's clamp.

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

Meta