File size: 113 Bytes
bc18ad5 | 1 2 3 4 | export function clamp(value: number, min: number, max: number) {
return Math.max(min, Math.min(value, max));
}
|
bc18ad5 | 1 2 3 4 | export function clamp(value: number, min: number, max: number) {
return Math.max(min, Math.min(value, max));
}
|