arcade-physics
Version:
Use Arcade Physics without Phaser.
26 lines • 1 kB
JavaScript
;
/**
* @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 Ellipse_1 = __importDefault(require("./Ellipse"));
/**
* Creates a new Ellipse instance based on the values contained in the given source.
*
* @function Phaser.Geom.Ellipse.Clone
* @since 3.0.0
*
* @param {Phaser.Geom.Ellipse} source - The Ellipse to be cloned. Can be an instance of an Ellipse or a ellipse-like object, with x, y, width and height properties.
*
* @return {Phaser.Geom.Ellipse} A clone of the source Ellipse.
*/
const Clone = source => {
return new Ellipse_1.default(source.x, source.y, source.width, source.height);
};
exports.default = Clone;
//# sourceMappingURL=Clone.js.map