UNPKG

arcade-physics

Version:
22 lines 791 B
export default Translate; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Tranlates the points of the given Polygon. * * @function Phaser.Geom.Polygon.Translate * @since 3.50.0 * * @generic {Phaser.Geom.Polygon} O - [polygon,$return] * * @param {Phaser.Geom.Polygon} polygon - The Polygon to modify. * @param {number} x - The amount to horizontally translate the points by. * @param {number} y - The amount to vertically translate the points by. * * @return {Phaser.Geom.Polygon} The modified Polygon. */ declare function Translate(polygon: Phaser.Geom.Polygon, x: number, y: number): Phaser.Geom.Polygon; //# sourceMappingURL=Translate.d.ts.map