.. DoesRectContain

.. default - domain::js

.. include:: /includes/standard.rst

========================
DoesRectContain (Obj.sc)
========================


.. function:: DoesRectContain(left top right bottom x y)

.. function:: DoesRectContain(left top right bottom obj)
	:noindex:

	:param number left: The left side of the rectangle.
	:param number top: The top of the rectangle.
	:param number right: The right side of the rectangle.
	:param number bottom: The bottom of the rectangle.
	:param number x: An x coordinate.
	:param number y: A y coordinate.
	:param heapPtr obj: An object with x and y properties

	:returns: TRUE if the rectangle contains the (x, y) coordinate or the object, FALSE otherwise.


