Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Line

getBounds([out])

Description:

Returns a Rectangle where the position and dimensions match the bounds of this Curve.

Parameters:

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

A Rectangle object to store the bounds in. If not given a new Rectangle will be created.

Returns:
Description:

A Rectangle object holding the bounds of this curve. If out was given it will be this object.

Examples:
Since: 3.0.0
Source: src/curves/LineCurve.js (Line 76)