arcade-physics
Version:
Use Arcade Physics without Phaser.
26 lines • 937 B
JavaScript
;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copies the `x`, `y`, `width` and `height` properties from the `source` Ellipse
* into the given `dest` Ellipse, then returns the `dest` Ellipse.
*
* @function Phaser.Geom.Ellipse.CopyFrom
* @since 3.0.0
*
* @generic {Phaser.Geom.Ellipse} O - [dest,$return]
*
* @param {Phaser.Geom.Ellipse} source - The source Ellipse to copy the values from.
* @param {Phaser.Geom.Ellipse} dest - The destination Ellipse to copy the values to.
*
* @return {Phaser.Geom.Ellipse} The destination Ellipse.
*/
const CopyFrom = (source, dest) => {
return dest.setTo(source.x, source.y, source.width, source.height);
};
exports.default = CopyFrom;
//# sourceMappingURL=CopyFrom.js.map