Phaser API Documentation

  Version: 
contains(x, y)

Description:

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

Parameters:

name type description
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
Inherited from: Phaser.Geom.Circle#contains
Since: 3.0.0
Source: src/geom/circle/Circle.js (Line 93)