mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-26 22:20:41 -04:00
All linting other than console statements
This commit is contained in:
parent
68ed110b49
commit
f6c0064235
34 changed files with 315 additions and 306 deletions
src/util
|
@ -1,4 +1,4 @@
|
|||
function MathUtil () {}
|
||||
var MathUtil = function () {};
|
||||
|
||||
/**
|
||||
* Convert a value from degrees to radians.
|
||||
|
@ -42,7 +42,7 @@ MathUtil.clamp = function (n, min, max) {
|
|||
*/
|
||||
MathUtil.wrapClamp = function (n, min, max) {
|
||||
var range = (max - min) + 1;
|
||||
return n - Math.floor((n - min) / range) * range;
|
||||
return n - (Math.floor((n - min) / range) * range);
|
||||
};
|
||||
|
||||
module.exports = MathUtil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue