arcade-physics
Version:
Use Arcade Physics without Phaser.
19 lines • 800 B
TypeScript
export default Overlaps;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Checks if two Rectangles overlap. If a Rectangle is within another Rectangle, the two will be considered overlapping. Thus, the Rectangles are treated as "solid".
*
* @function Phaser.Geom.Rectangle.Overlaps
* @since 3.0.0
*
* @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to check.
* @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to check.
*
* @return {boolean} `true` if the two Rectangles overlap, `false` otherwise.
*/
declare function Overlaps(rectA: Phaser.Geom.Rectangle, rectB: Phaser.Geom.Rectangle): boolean;
//# sourceMappingURL=Overlaps.d.ts.map