UNPKG

arcade-physics

Version:
26 lines 867 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 from degrees, to the equivalent angle in radians. * * @function Phaser.Math.DegToRad * @since 3.0.0 * * @param {number} degrees - The angle (in degrees) to convert to radians. * * @return {number} The given angle converted to radians. */ const DegToRad = degrees => { return degrees * const_1.default.DEG_TO_RAD; }; exports.default = DegToRad; //# sourceMappingURL=DegToRad.js.map