Skip to content

Math

Unofficial

Augments the built-in Math interface.

Signature:

export interface Math

Methods

MethodReturnsDescription
clamp(value, min, max)numberClamps a value between a minimum and maximum.
square(value)numberReturns the square of a number.