All linting other than console statements

This commit is contained in:
Ray Schamp 2016-10-23 17:55:31 -04:00
parent 68ed110b49
commit f6c0064235
34 changed files with 315 additions and 306 deletions
src/util

View file

@ -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;