Math
Unofficial
Augments the built-in Math interface.
Signature:
export interface MathMethods
| Method | Returns | Description | |
|---|---|---|---|
| clamp(value, min, max) | number | Clamps a value between a minimum and maximum. | |
| square(value) | number | Returns the square of a number. |