3 ms·Wrap it in a function, verify the implementation once, then henceforth use clamp(x, min, max).by rkagerer 6y agoWrap it in a function, verify the implementation once, then henceforth use clamp(x, min, max).