Rectangle.size()

<static> size(a, output) → {Phaser.Point}

The size of the Rectangle object, expressed as a Point object with the values of the width and height properties.

Parameters
Name Type Argument Description
a Phaser.Rectangle

The Rectangle object.

output Phaser.Point <optional>

Optional Point object. If given the values will be set into the object, otherwise a brand new Point object will be created and returned.

Returns

The size of the Rectangle object

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

Please login to continue.