UNPKG

arcade-physics

Version:
22 lines 810 B
export default Offset; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Nudges (translates) the top left corner of a Rectangle by a given offset. * * @function Phaser.Geom.Rectangle.Offset * @since 3.0.0 * * @generic {Phaser.Geom.Rectangle} O - [rect,$return] * * @param {Phaser.Geom.Rectangle} rect - The Rectangle to adjust. * @param {number} x - The distance to move the Rectangle horizontally. * @param {number} y - The distance to move the Rectangle vertically. * * @return {Phaser.Geom.Rectangle} The adjusted Rectangle. */ declare function Offset(rect: Phaser.Geom.Rectangle, x: number, y: number): Phaser.Geom.Rectangle; //# sourceMappingURL=Offset.d.ts.map