Properties

bottom

number

left

number

number

top

number

Method

contains

contains(x, y) returns boolean

Tests whether this rectangle contains a x/y coordinate.

Parameter

x

number

The x coordinate to test for containment.

y

number

The y coordinate to test for containment.

Returns

boolean Whether this rectangle contains given coordinate.