Rectangle.inflatePoint()

<static> inflatePoint(a, point) → {Phaser.Rectangle}

Increases the size of the Rectangle object. This method is similar to the Rectangle.inflate() method except it takes a Point object as a parameter.

Parameters
Name Type Description
a Phaser.Rectangle

The Rectangle object.

point Phaser.Point

The x property of this Point object is used to increase the horizontal dimension of the Rectangle object. The y property is used to increase the vertical dimension of the Rectangle object.

Returns

The Rectangle object.

Source code: geom/Rectangle.js (Line 780)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.