lndsld

Home > @lndsld/math > clamp

clamp() function

Clamp value in range

Signature:

declare function clamp(range: IRange2): Transform<number>;

Parameters

Parameter Type Description
range IRange2  

Returns:

Transform<number>