arcade-physics
Version:
Use Arcade Physics without Phaser.
16 lines • 810 B
TypeScript
export default FromPoints;
/**
* Constructs new Rectangle or repositions and resizes an existing Rectangle so that all of the given points are on or within its bounds.
*
* @function Phaser.Geom.Rectangle.FromPoints
* @since 3.0.0
*
* @generic {Phaser.Geom.Rectangle} O - [out,$return]
*
* @param {array} points - An array of points (either arrays with two elements corresponding to the X and Y coordinate or an object with public `x` and `y` properties) which should be surrounded by the Rectangle.
* @param {Phaser.Geom.Rectangle} [out] - Optional Rectangle to adjust.
*
* @return {Phaser.Geom.Rectangle} The adjusted `out` Rectangle, or a new Rectangle if none was provided.
*/
declare function FromPoints(points: any[], out?: any): Phaser.Geom.Rectangle;
//# sourceMappingURL=FromPoints.d.ts.map