phaser/v3/typings/geom/point/GetRectangleFromPoints.d.ts

11 lines
440 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* Calculates the Axis Aligned Bounding Box (or aabb) from an array of points.
*
* @method Phaser.Rectangle#aabb
* @param {Phaser.Point[]} points - The array of one or more points.
* @param {Phaser.Rectangle} [out] - Optional Rectangle to store the value in, if not supplied a new Rectangle object will be created.
* @return {Phaser.Rectangle} The new Rectangle object.
* @static
*/
export default function (points: any, out: any): any;