arcade-physics
Version:
Use Arcade Physics without Phaser.
20 lines • 746 B
TypeScript
export default Contains;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Checks if a given point is inside a Rectangle's bounds.
*
* @function Phaser.Geom.Rectangle.Contains
* @since 3.0.0
*
* @param {Phaser.Geom.Rectangle} rect - The Rectangle to check.
* @param {number} x - The X coordinate of the point to check.
* @param {number} y - The Y coordinate of the point to check.
*
* @return {boolean} `true` if the point is within the Rectangle's bounds, otherwise `false`.
*/
declare function Contains(rect: Phaser.Geom.Rectangle, x: number, y: number): boolean;
//# sourceMappingURL=Contains.d.ts.map