phaser - v4.0.0-rc.4
    Preparing search index...
    • Checks if two Rectangles intersect.

      A Rectangle intersects another Rectangle if any part of its bounds is within the other Rectangle's bounds. As such, the two Rectangles are considered "solid". A Rectangle with no width or no height will never intersect another Rectangle.

      Parameters

      • rectA: Geom.Rectangle

        The first Rectangle to check for intersection.

      • rectB: Geom.Rectangle

        The second Rectangle to check for intersection.

      Returns boolean