UNPKG

arcade-physics

Version:
26 lines 863 B
"use strict"; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const const_1 = __importDefault(require("./const")); /** * Convert the given angle in radians, to the equivalent angle in degrees. * * @function Phaser.Math.RadToDeg * @since 3.0.0 * * @param {number} radians - The angle in radians to convert ot degrees. * * @return {number} The given angle converted to degrees. */ const RadToDeg = radians => { return radians * const_1.default.RAD_TO_DEG; }; exports.default = RadToDeg; //# sourceMappingURL=RadToDeg.js.map