Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Circle

<static> ContainsRect(circle, rect)

Description:

Check to see if the Circle contains all four points of the given Rectangle object.

Parameters:

name type description
circle Phaser.Geom.Circle

The Circle to check.

rect object | Phaser.Geom.Rectangle

The Rectangle object to check if it's within the Circle or not.

Returns:
Description:

True if all of the Rectangle coordinates are within the circle, otherwise false.

Type:
  • boolean
Since: 3.0.0