arcade-physics
Version:
Use Arcade Physics without Phaser.
22 lines • 929 B
TypeScript
export default MergeRect;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Merges the source rectangle into the target rectangle and returns the target.
* Neither rectangle should have a negative width or height.
*
* @function Phaser.Geom.Rectangle.MergeRect
* @since 3.0.0
*
* @generic {Phaser.Geom.Rectangle} O - [target,$return]
*
* @param {Phaser.Geom.Rectangle} target - Target rectangle. Will be modified to include source rectangle.
* @param {Phaser.Geom.Rectangle} source - Rectangle that will be merged into target rectangle.
*
* @return {Phaser.Geom.Rectangle} Modified target rectangle that contains source rectangle.
*/
declare function MergeRect(target: Phaser.Geom.Rectangle, source: Phaser.Geom.Rectangle): Phaser.Geom.Rectangle;
//# sourceMappingURL=MergeRect.d.ts.map