3 ms·
I always used to get confused by the function names “min” and “max” because they return the minimum and maximum, but typically when you use them you are thinkin
by jchw 6y ago
I always used to get confused by the function names “min” and “max” because they return the minimum and maximum, but typically when you use them you are thinking in terms of applying a minimum or maximum bound. Having a dedicated clamp function significantly helps although imo there is not a single correct order for the parameters to go in.
- z3ncyberpunk 6y agoMore often than not no.. I am trying to find the min/max value in a set. Bit a bound