Polygon#contains()

contains(x, y) → {boolean}

Checks whether the x and y coordinates are contained within this polygon.

Parameters
Name Type Description
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 polygon, otherwise false.

Source code: geom/Polygon.js (Line 134)
doc_phaser
2017-02-14 11:06:32
Comments
Leave a Comment

Please login to continue.