Add glMatrix

This commit is contained in:
schmelczerandras 2020-07-22 20:00:57 +02:00
commit e88b4589d2

View file

@ -0,0 +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 => clamp(value, 0, 1);