Finish documentation

This commit is contained in:
schmelczerandras 2020-09-28 16:26:55 +02:00
commit 31fcfd3d6b

View file

@ -1,4 +1,6 @@
/** @internal */
export const clamp = (value: number, min: number, max: number): number =>
Math.min(max, Math.max(min, value));
/** @internal */
export const clamp01 = (value: number): number => Math.min(1, Math.max(0, value));