
######################
isPointOnLineSegment2d
######################

.. js:function:: wv.isPointOnLineSegment2d

   .. rst-class:: sig-pretty-signature
   
      | isPointOnLineSegment2d(**point**\ : :js:class:`Point2 <wv.Point2>`\ , **p1**\ : :js:class:`Point2 <wv.Point2>`\ , **p2**\ : :js:class:`Point2 <wv.Point2>`\ , **tolerance**\ : *number*\ ): *boolean*
   
   Returns whether the 2-dimensional point ``point`` lies on the line segment ``p1p2``\ .
   
   **Parameters**
   
   
      **point**\ : :js:class:`Point2 <wv.Point2>`
   
   
         The point to test
   
   
      **p1**\ : :js:class:`Point2 <wv.Point2>`
   
   
         The first endpoint of the line segment
   
   
      **p2**\ : :js:class:`Point2 <wv.Point2>`
   
   
         The second endpoint of the line segment
   
   
      **tolerance**\ : *number*
   
   
         If the perpendicular distance of ``point`` from the line segment is less than or equal to ``tolerance``\ , the function will return ``true``\ .
   
   
   
   **Returns**\ : *boolean*
   




