
###############
isPointInRect2d
###############

.. js:function:: isPointInRect2d

   .. rst-class:: sig-pretty-signature
   
      | isPointInRect2d(**point**\ : :js:class:`~Point2`\ , **rectPos**\ : :js:class:`~Point2`\ , **rectSize**\ : :js:class:`~Point2`\ , **tolerance**\ : *number*\ ?): *boolean*
   
   Returns whether the 2-dimensional point ``point`` lies within the given rectangle.
   
   **Parameters**
   
      **point**\ : :js:class:`~Point2`
   
         The point to test
   
   
      **rectPos**\ : :js:class:`~Point2`
   
         The lower-left corner of the rectangle
   
   
      **rectSize**\ : :js:class:`~Point2`
   
         The width and height of the rectangle
   
   
      **tolerance**\ : *number* = 0
   
         The maximum distance along the x- or y-axis that ``point`` is allowed to be outside the rectangle
   
   
   
   **Returns**\ : *boolean*
   




