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