Pass with --fix

This commit is contained in:
Ray Schamp 2017-04-17 15:10:04 -04:00
parent f646a61c5b
commit e01c4ae108
41 changed files with 803 additions and 824 deletions
src/util

View file

@ -1,4 +1,4 @@
var MathUtil = function () {};
const MathUtil = function () {};
/**
* Convert a value from degrees to radians.
@ -41,7 +41,7 @@ MathUtil.clamp = function (n, min, max) {
* @return {!number} Value of n wrapped between min and max.
*/
MathUtil.wrapClamp = function (n, min, max) {
var range = (max - min) + 1;
const range = (max - min) + 1;
return n - (Math.floor((n - min) / range) * range);
};