first commit
This commit is contained in:
6
node_modules/motion-utils/dist/es/wrap.mjs
generated
vendored
Normal file
6
node_modules/motion-utils/dist/es/wrap.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
const wrap = (min, max, v) => {
|
||||
const rangeSize = max - min;
|
||||
return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;
|
||||
};
|
||||
|
||||
export { wrap };
|
||||
Reference in New Issue
Block a user