> leave that responsibility to the user
I think it would be better to have a function in the library that does this. Then it can be extended to allow for more clever things than a simple min/max clamp.
I think it would be better to have a function in the library that does this. Then it can be extended to allow for more clever things than a simple min/max clamp.
Color is a great example of how "low-order" approximations are very useful, and how quickly it can get very hard once you want to go a bit beyond that.