Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Ellipse

contains(x, y)

Description:

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

Parameters:

name type description
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