Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Circle

<static> ContainsPoint(circle, point)

Description:

Check to see if the Circle contains the given Point object.

Parameters:

name type description
circle Phaser.Geom.Circle

The Circle to check.

point object | Phaser.Geom.Point

The Point object to check if it's within the Circle or not.

Returns:
Description:

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

Type:
  • boolean
Since: 3.0.0