Rectangle.containsPoint()

<static> containsPoint(a, point) → {boolean}

Determines whether the specified point is contained within the rectangular region defined by this Rectangle object. This method is similar to the Rectangle.contains() method, except that it takes a Point object as a parameter.

Parameters
Name Type Description
a Phaser.Rectangle

The Rectangle object.

point Phaser.Point

The point object being checked. Can be Point or any object with .x and .y values.

Returns
boolean -

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

Source code: geom/Rectangle.js (Line 873)
doc_phaser
2017-02-14 11:07:11
Comments
Leave a Comment

Please login to continue.