Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Circle

<static> Contains(circle, x, y)

Description:

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

Parameters:

name type description
circle Phaser.Geom.Circle

The Circle to check.

x number

The x coordinate to check within the circle.

y number

The y coordinate to check within the circle.

Returns:
Description:

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

Type:
  • boolean
Since: 3.0.0