constrain

v0.1.7
constrain(x, min, max);

Limits x to a minimum and maximum value.

Arguments

xThe input value
minThe minimum value
maxThe maximum value

Returns

numberThe constrained value

See constrain in lu5_math.h