This commit is contained in:
2025-02-07 17:04:43 -06:00
parent 33fd7ddf72
commit 8eec81c7f4
2249 changed files with 75331 additions and 685 deletions

View File

@@ -0,0 +1,13 @@
'use strict';
export let deg2rad = Math.PI / 180;
export let rad2deg = 180 / Math.PI;
export function smoothStep(min, max, v) {
let x = Math.max(0, Math.min(1, (v-min)/(max-min)));
return x*x*(3-2*x);
};
export function mix(a, b, v) {
return a+(b-a)*v;
};