arcade-physics
Version:
Use Arcade Physics without Phaser.
22 lines • 1.04 kB
TypeScript
export default Scale;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Scales the width and height of this Rectangle by the given amounts.
*
* @function Phaser.Geom.Rectangle.Scale
* @since 3.0.0
*
* @generic {Phaser.Geom.Rectangle} O - [rect,$return]
*
* @param {Phaser.Geom.Rectangle} rect - The `Rectangle` object that will be scaled by the specified amount(s).
* @param {number} x - The factor by which to scale the rectangle horizontally.
* @param {number} y - The amount by which to scale the rectangle vertically. If this is not specified, the rectangle will be scaled by the factor `x` in both directions.
*
* @return {Phaser.Geom.Rectangle} The rectangle object with updated `width` and `height` properties as calculated from the scaling factor(s).
*/
declare function Scale(rect: Phaser.Geom.Rectangle, x: number, y: number): Phaser.Geom.Rectangle;
//# sourceMappingURL=Scale.d.ts.map