chore: lint

This commit is contained in:
cha0s 2021-01-04 06:43:32 -06:00
parent 5a181e2a98
commit 69695f408c

View File

@ -70,12 +70,11 @@ export const normalizeAngleRange = (min, max) => {
/* eslint-enable no-param-reassign */
};
export const randomNumber = (min, max) => {
/* eslint-disable no-param-reassign */
if (min > max) {
// eslint-disable-next-line no-param-reassign
[max, min] = [min, max];
}
return min + Math.random() * (max - min);
/* eslint-enable no-param-reassign */
};
export const sub = (l, r) => l - r;
export const toRad = (a) => (a % 360) * PI_180;