UNPKG

arcade-physics

Version:
16 lines 662 B
export default GetCenter; /** * Returns the center of a Rectangle as a Point. * * @function Phaser.Geom.Rectangle.GetCenter * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the center of. * @param {(Phaser.Geom.Point|object)} [out] - Optional point-like object to update with the center coordinates. * * @return {(Phaser.Geom.Point|object)} The modified `out` object, or a new Point if none was provided. */ declare function GetCenter(rect: Phaser.Geom.Rectangle, out?: (Phaser.Geom.Point | object)): (Phaser.Geom.Point | object); //# sourceMappingURL=GetCenter.d.ts.map