wrap
Wrap input to a range within an upper and lower bound
wrap(x, low, high): out1
Arguments:
Arguments
Name | Type | Default | Description |
---|---|---|---|
x | number | The input to be wrapped. | |
low | number | Sets the lower bound of the wrap. | |
high | number | 1 | Sets the upper bound of the wrap. |
Returns
Name | Type | Description |
---|---|---|
out1 | number | The wrapped output. |