Added clamp function

This commit is contained in:
斟酌 鵬兄 2016-07-04 22:43:14 +08:00
parent 4a76826516
commit 6525d472cd

3
math.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
clamp: ( v, min, max ) => Math.max( min, Math.min( v, max ) )
};