hughsk / clamp

Clamp a value between two other values.
MIT License
39 stars 5 forks source link

switch argument order #9

Open semibran opened 7 years ago

semibran commented 7 years ago

clamp(min, max, value) matches stuff like lerp(v0, v1, t) quite nicely imo. Not bad for partial application either:thinking: