
##########################
computePointToLineDistance
##########################

.. js:function:: wv.computePointToLineDistance

   .. rst-class:: sig-pretty-signature
   
      | computePointToLineDistance(**point**\ : :js:class:`Point3 <wv.Point3>`\ , **lineBegin**\ : :js:class:`Point3 <wv.Point3>`\ , **lineEnd**\ : :js:class:`Point3 <wv.Point3>`\ , **out_closestPointOnLine**\ : :js:class:`Point3 <wv.Point3>`\ ): *number*
   
   Computes the shortest distance between a point and a line segment.
   
   **Parameters**
   
   
      **point**\ : :js:class:`Point3 <wv.Point3>`
   
   
         The point to compute against.
   
   
      **lineBegin**\ : :js:class:`Point3 <wv.Point3>`
   
   
         The start point of the line segment to compute against.
   
   
      **lineEnd**\ : :js:class:`Point3 <wv.Point3>`
   
   
         The end point of the line segment to compute against.
   
   
      **out_closestPointOnLine**\ : :js:class:`Point3 <wv.Point3>`
   
   
         The out parameter for a closest point on the line segment to the point.
   
   
   
   **Returns**\ : *number*
   
   
      The distance from the point and the closest point on the line.
   
   




