mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
9 lines
402 B
TypeScript
9 lines
402 B
TypeScript
/**
|
|
* Centers this Rectangle so that the center coordinates match the given x and y values.
|
|
*
|
|
* @method Phaser.Rectangle#centerOn
|
|
* @param {number} x - The x coordinate to place the center of the Rectangle at.
|
|
* @param {number} y - The y coordinate to place the center of the Rectangle at.
|
|
* @return {Phaser.Rectangle} This Rectangle object
|
|
*/
|
|
export default function (rect: any, x: any, y: any): any;
|