Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Clamping numbers between an upper and lower bound is a relatively-common task, specially in graphics domain.
Currently, Java and Scala standard library does not offer such functionality, so users need to write something like
I propose adding