Constructor
new E()
- License:
- MIT
- Source:
- See:
Methods
(static) clip(x, min, max) → {float}
Clip a number to be between min and max (inclusive).
Parameters:
Name | Type | Description |
---|---|---|
x |
float | A floating point value to clip |
min |
float | The smallest the value should be |
max |
float | The largest the value should be |
Returns:
The value of x, clipped so as not to be below min or above max.
- Type
- float