Merges a Rectangle with a list of points by repositioning and/or resizing it such that all points are located on or within its bounds.
name | type | description |
---|---|---|
target | Phaser.Geom.Rectangle |
The Rectangle which should be merged. |
points | Array.<Phaser.Geom.Point> |
An array of Points (or any object with public |
The modified Rectangle.