InRect (System.sc)¶
-
InRect
(left top right bottom x y)¶
-
InRect
(left top right bottom obj) Parameters: - left (number) – The left side of the rectangle.
- top (number) – The top of the rectangle.
- right (number) – The right side of the rectangle.
- bottom (number) – The bottom of the rectangle.
- x (number) – An x coordinate.
- y (number) – A y coordinate.
- obj (heapPtr) – An object with x and y properties
Returns: TRUE if the rectangle contains the (x, y) coordinate or the object, FALSE otherwise.