RoundedRectangle#contains()

contains(x, y) → {boolean}

Determines whether the specified coordinates are contained within the region defined by this Rounded Rectangle object.

Parameters
Name Type Description
x number

The x coordinate of the point to test.

y number

The y coordinate of the point to test.

Returns
boolean -

A value of true if the RoundedRectangle Rectangle object contains the specified point; otherwise false.

Source code: geom/RoundedRectangle.js (Line 75)
doc_phaser
2017-02-14 11:09:00
Comments
Leave a Comment

Please login to continue.