Ellipse.contains()

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

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

Parameters
Name Type Description
a Phaser.Ellipse

The Ellipse 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 ellipse, otherwise false.

Source code: geom/Ellipse.js (Line 299)
doc_phaser
2017-02-14 10:45:38
Comments
Leave a Comment

Please login to continue.