arcade-physics
Version:
Use Arcade Physics without Phaser.
26 lines • 794 B
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 Point_1 = __importDefault(require("./Point"));
/**
* Clone the given Point.
*
* @function Phaser.Geom.Point.Clone
* @since 3.0.0
*
* @param {Phaser.Geom.Point} source - The source Point to clone.
*
* @return {Phaser.Geom.Point} The cloned Point.
*/
const Clone = source => {
return new Point_1.default(source.x, source.y);
};
exports.default = Clone;
//# sourceMappingURL=Clone.js.map