Rectangle.containsRaw()

<static> containsRaw(rx, ry, rw, rh, x, y) → {boolean}

Determines whether the specified coordinates are contained within the region defined by the given raw values.

Parameters
Name Type Description
rx number

The x coordinate of the top left of the area.

ry number

The y coordinate of the top left of the area.

rw number

The width of the area.

rh number

The height of the area.

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 Rectangle object contains the specified point; otherwise false.

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

Please login to continue.