Circle.contains()

<static> contains(a, x, y) → {boolean}

Return true if the given x/y coordinates are within the Circle object.

Parameters
Name Type Description
a Phaser.Circle

The Circle to be checked.

x number

The X value of the coordinate to test.

y number

The Y value of the coordinate to test.

Returns
boolean -

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

Source code: geom/Circle.js (Line 458)
doc_phaser
2017-02-14 10:41:33
Comments
Leave a Comment

Please login to continue.