first commit

This commit is contained in:
2025-07-13 15:53:40 +02:00
commit c367533b3e
8 changed files with 477 additions and 0 deletions

9
utils.ts Normal file
View File

@@ -0,0 +1,9 @@
export function lerp(a: number, b: number, amount: number) {
return a + (b - a) * amount;
}
export function lerp2(a: number, b: number, amount1: number, c: number, amount2: number) {
const intermediate = a + (b - a) * amount1;
return intermediate + (c - intermediate) * amount2;
}