Calculates the bounding AABB rectangle of a polygon.
The polygon that should be calculated.
|object | Phaser.Geom.Rectangle
The rectangle or object that has x, y, width, and height properties to store the result. Optional.
The resulting rectangle or object that is passed in with position and dimensions of the polygon's AABB.