arcade-physics
Version:
Use Arcade Physics without Phaser.
17 lines • 789 B
TypeScript
export default Union;
/**
* Creates a new Rectangle or repositions and/or resizes an existing Rectangle so that it encompasses the two given Rectangles, i.e. calculates their union.
*
* @function Phaser.Geom.Rectangle.Union
* @since 3.0.0
*
* @generic {Phaser.Geom.Rectangle} O - [out,$return]
*
* @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to use.
* @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to use.
* @param {Phaser.Geom.Rectangle} [out] - The Rectangle to store the union in.
*
* @return {Phaser.Geom.Rectangle} The modified `out` Rectangle, or a new Rectangle if none was provided.
*/
declare function Union(rectA: Phaser.Geom.Rectangle, rectB: Phaser.Geom.Rectangle, out?: any): Phaser.Geom.Rectangle;
//# sourceMappingURL=Union.d.ts.map