blockly > utils > math

utils.math 命名空間

函式

函式 說明
clamp(lowerBound, number, aboveBound) 將提供的數字限制在下限和上限之間。
toDegrees(angleRadians) 將弧度轉換成角度。複製來源為 Closure 的 goog.math.toDegrees。
toRadians(angleDegrees) 將角度轉換為弧度。複製來源為 Closure 的 goog.math.toRadians。