UNPKG

arcade-physics

Version:
26 lines 981 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 Circle_1 = __importDefault(require("./Circle")); /** * Creates a new Circle instance based on the values contained in the given source. * * @function Phaser.Geom.Circle.Clone * @since 3.0.0 * * @param {(Phaser.Geom.Circle|object)} source - The Circle to be cloned. Can be an instance of a Circle or a circle-like object, with x, y and radius properties. * * @return {Phaser.Geom.Circle} A clone of the source Circle. */ const Clone = source => { return new Circle_1.default(source.x, source.y, source.radius); }; exports.default = Clone; //# sourceMappingURL=Clone.js.map