Merges the source rectangle into the target rectangle and returns the target. Neither rectangle should have a negative width or height.
name | type | description |
---|---|---|
target | Phaser.Geom.Rectangle |
Target rectangle. Will be modified to include source rectangle. |
source | Phaser.Geom.Rectangle |
Rectangle that will be merged into target rectangle. |
Modified target rectangle that contains source rectangle.