union(b, out) → {Phaser.Rectangle}
Adds two Rectangles together to create a new Rectangle object, by filling in the horizontal and vertical space between the two Rectangles.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
b | Phaser.Rectangle | The second Rectangle object. | |
out | Phaser.Rectangle | <optional> | Optional Rectangle object. If given the new values will be set into this object, otherwise a brand new Rectangle object will be created and returned. |
Returns
A Rectangle object that is the union of the two Rectangles.
- Source code: geom/Rectangle.js (Line 354)
Please login to continue.