arcade-physics
Version:
Use Arcade Physics without Phaser.
19 lines • 972 B
TypeScript
export default Intersection;
/**
* Takes two Rectangles and first checks to see if they intersect.
* If they intersect it will return the area of intersection in the `out` Rectangle.
* If they do not intersect, the `out` Rectangle will have a width and height of zero.
*
* @function Phaser.Geom.Rectangle.Intersection
* @since 3.11.0
*
* @generic {Phaser.Geom.Rectangle} O - [rect,$return]
*
* @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to get the intersection from.
* @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to get the intersection from.
* @param {Phaser.Geom.Rectangle} [out] - A Rectangle to store the intersection results in.
*
* @return {Phaser.Geom.Rectangle} The intersection result. If the width and height are zero, no intersection occurred.
*/
declare function Intersection(rectA: Phaser.Geom.Rectangle, rectB: Phaser.Geom.Rectangle, out?: any): Phaser.Geom.Rectangle;
//# sourceMappingURL=Intersection.d.ts.map