UNPKG

arcade-physics

Version:
25 lines 699 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 }); /** * Reverses the order of the points of a Polygon. * * @function Phaser.Geom.Polygon.Reverse * @since 3.0.0 * * @generic {Phaser.Geom.Polygon} O - [polygon,$return] * * @param {Phaser.Geom.Polygon} polygon - The Polygon to modify. * * @return {Phaser.Geom.Polygon} The modified Polygon. */ const Reverse = polygon => { polygon.points.reverse(); return polygon; }; exports.default = Reverse; //# sourceMappingURL=Reverse.js.map