Rectangle#aabb()

aabb(points, out) → {Phaser.Rectangle}

Calculates the Axis Aligned Bounding Box (or aabb) from an array of points.

Parameters
Name Type Argument Description
points Array.<Phaser.Point>

The array of one or more points.

out Phaser.Rectangle <optional>

Optional Rectangle to store the value in, if not supplied a new Rectangle object will be created.

Returns

The new Rectangle object.

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

Please login to continue.