Skip to content
pixi-silk
GitHub repository
Function

clamp

import { clamp } from 'pixi-silk/ui/arc';
function clamp(
   v: number, 
   min: number, 
   max: number
): number;

Clamps v to min..max. Expects min <= max.

Parameters#

ParameterType
vnumber
minnumber
maxnumber

Returns#

number