Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

<static> Contains(ellipse, x, y)

Description:

Check to see if the Ellipse contains the given x / y coordinates.

Parameters:

name type description
ellipse Phaser.Geom.Ellipse

The Ellipse to check.

x number

The x coordinate to check within the ellipse.

y number

The y coordinate to check within the ellipse.

Returns:
Description:

True if the coordinates are within the ellipse, otherwise false.

Type:
  • boolean
Since: 3.0.0