UNPKG

arcade-physics

Version:
25 lines 799 B
"use strict"; /** * @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 }); /** * Copy the values of one Point to a destination Point. * * @function Phaser.Geom.Point.CopyFrom * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [dest,$return] * * @param {Phaser.Geom.Point} source - The source Point to copy the values from. * @param {Phaser.Geom.Point} dest - The destination Point to copy the values to. * * @return {Phaser.Geom.Point} The destination Point. */ const CopyFrom = (source, dest) => { return dest.setTo(source.x, source.y); }; exports.default = CopyFrom; //# sourceMappingURL=CopyFrom.js.map