cleanup wp

This commit is contained in:
Benjamin Palko 2025-04-05 14:31:40 -04:00
parent 788df7773c
commit 672767a31e
2 changed files with 18 additions and 50 deletions

12
util/Mathf.ts Normal file
View file

@ -0,0 +1,12 @@
export const Mathf = {
clamp: (value: number, min: number, max: number) => {
if (value < min) return min;
if (value > max) return max;
return value;
},
sign: (value: number) => {
if (value > 0) return 1;
if (value < 0) return -1;
return 0;
},
};