Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

getBounds([out], [accuracy])

Description:

Returns a Rectangle with a position and size matching the bounds of this Path.

Parameters:

name type arguments Default description
out Phaser.Geom.Rectangle <optional>

The Rectangle to store the bounds in.

accuracy number <optional> 16

The accuracy of the bounds calculations. Higher values are more accurate at the cost of calculation speed.

Returns:
Description:

The modified out Rectangle, or a new Rectangle if none was provided.

Since: 3.0.0
Source: src/curves/path/Path.js (Line 386)