chore: lint
This commit is contained in:
parent
5a181e2a98
commit
69695f408c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user