
##############################
closestPointFromPointToSegment
##############################

.. js:function:: closestPointFromPointToSegment

   .. rst-class:: sig-pretty-signature
   
      | closestPointFromPointToSegment(**p0**\ : :js:class:`~Point3`\ , **p1**\ : :js:class:`~Point3`\ , **point**\ : :js:class:`~Point3`\ ): :js:class:`~Point3`
   
   Finds the closest point on line segment p0-p1 to the given point. The closest point will always lie on or between the line segment endpoints.
   
   **Parameters**
   
      **p0**\ : :js:class:`~Point3`
   
         First point of the line segment
   
   
      **p1**\ : :js:class:`~Point3`
   
         Second point of the line segment
   
   
      **point**\ : :js:class:`~Point3`
   
         Point at which to find closest line segment point.
   
   
   
   **Returns**\ : :js:class:`~Point3`
   




