Skip to content

Math

Unofficial

Augments the built-in Math interface.

Signature:

export interface Math

Methods

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.