Stay organized with collections Save and categorize content based on your preferences.

blockly > utils > math

utils.math namespace


Function Description
clamp(lowerBound, number, upperBound) Clamp the provided number between the lower bound and the upper bound.
toDegrees(angleRadians) Converts radians to degrees. Copied from Closure's goog.math.toDegrees.
toRadians(angleDegrees) Converts degrees to radians. Copied from Closure's goog.math.toRadians.