Finish documentation
This commit is contained in:
parent
49473bf905
commit
31fcfd3d6b
1 changed files with 1351 additions and 8453 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue