Methods

clamp

static

clamp(lowerBound, number, upperBound) returns number

Clamp the provided number between the lower bound and the upper bound.

Parameter

lowerBound

number

The desired lower bound.

number

number

The number to clamp.

upperBound

number

The desired upper bound.

Returns

number The clamped number.

toDegrees

static

toDegrees(angleRadians) returns number

Converts radians to degrees. Copied from Closure's goog.math.toDegrees.

Parameter

angleRadians

number

Angle in radians.

Returns

number Angle in degrees.

toRadians

static

toRadians(angleDegrees) returns number

Converts degrees to radians. Copied from Closure's goog.math.toRadians.

Parameter

angleDegrees

number

Angle in degrees.

Returns

number Angle in radians.