blockly
Version:
Blockly is a library for building visual programming editors.
31 lines • 914 B
TypeScript
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Converts degrees to radians.
* Copied from Closure's goog.math.toRadians.
*
* @param angleDegrees Angle in degrees.
* @returns Angle in radians.
*/
export declare function toRadians(angleDegrees: number): number;
/**
* Converts radians to degrees.
* Copied from Closure's goog.math.toDegrees.
*
* @param angleRadians Angle in radians.
* @returns Angle in degrees.
*/
export declare function toDegrees(angleRadians: number): number;
/**
* Clamp the provided number between the lower bound and the upper bound.
*
* @param lowerBound The desired lower bound.
* @param number The number to clamp.
* @param upperBound The desired upper bound.
* @returns The clamped number.
*/
export declare function clamp(lowerBound: number, number: number, upperBound: number): number;
//# sourceMappingURL=math.d.ts.map