Phaser API Documentation

  Version: 
<static> ContainsRect(rectA, rectB)

Description:

Tests if one rectangle fully contains another.

Parameters:

name type description
rectA Phaser.Geom.Rectangle

The first rectangle.

rectB Phaser.Geom.Rectangle

The second rectangle.

Returns:
Description:

True only if rectA fully contains rectB.

Type:
  • boolean
Since: 3.0.0