Add linting
This commit is contained in:
parent
76282a4cf7
commit
40a660b7cb
1 changed files with 232 additions and 329 deletions
|
|
@ -1,5 +1,4 @@
|
|||
export const clamp = (value: number, min: number, max: number): number =>
|
||||
Math.min(max, Math.max(min, value));
|
||||
|
||||
export const clamp01 = (value: number): number =>
|
||||
Math.min(1, Math.max(0, value));
|
||||
export const clamp01 = (value: number): number => Math.min(1, Math.max(0, value));
|
||||
|
|
|
|||
Loading…
Reference in a new issue