Home Contents | # Rectangle Intersection | Graphics | Core4 Lua Commands

## SYNOPSIS

flag = rect:contains(x, y)

## DESCRIPTION

Returns true if the passed point is inside the rectangle, i.e.:
(x >= rect:left()) and (x <= rect:right()) and (y >= rect:top()) and (y <= rect:bottom())

## RETURN VALUE

A boolean value.

## SEE ALSO

gfx.rect, rect(), rect:bottom, rect:bottomright, rect:height, rect:left, rect:right, rect:size, rect:top, rect:topleft, rect:width, rect:x, rect:y, tostring(rect)