Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

<static> ContainsRect(ellipse, rect)

Description:

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

Parameters:

name type description
ellipse Phaser.Geom.Ellipse

The Ellipse to check.

rect object | Phaser.Geom.Rectangle

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

Returns:
Description:

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

Type:
  • boolean
Since: 3.0.0