UNPKG

arcade-physics

Version:
25 lines 812 B
"use strict"; /** * @author Richard Davey <rich@photonstorm.com> * @author @samme * @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 FloatBetween_1 = __importDefault(require("../FloatBetween")); /** * Returns a random angle in the range [-180, 180]. * * @function Phaser.Math.Angle.RandomDegrees * @since 3.23.0 * * @return {number} The angle, in degrees. */ const RandomDegrees = () => { return (0, FloatBetween_1.default)(-180, 180); }; exports.default = RandomDegrees; //# sourceMappingURL=RandomDegrees.js.map