original_docstring: Computes the minimum distance between a point and a line segment.
  
      The closest point may be an endpoint. Checks to the tolerance passed in.
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line segment.
          pt2: Second point defining the line segment.
          pt: The point to find the distance to.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          The minimum distance between pt and the line.
      
docstring: Computes the minimum distance between a point and a line segment.
  The closest point may be an endpoint. Checks to the tolerance passed in.
  Points are represented as (x, y, z) triples.
docstring_tokens: Computes the minimum distance between a point and a line segment . The closest point may be an endpoint . Checks to the tolerance passed in . Points are represented as ( x y z ) triples .
code: def distance_to_line_segment_2d(pt1, pt2, pt, tol=None):
      """Computes the minimum distance between a point and a line segment.
  
      The closest point may be an endpoint. Checks to the tolerance passed in.
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line segment.
          pt2: Second point defining the line segment.
          pt: The point to find the distance to.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          The minimum distance between pt and the line.
      """
      if tol is None:
          tol = get_tol_2d()
      return geometry.gm2DDistanceToLineSegmentWithTol(pt1, pt2, pt, tol)
code_tokens: def distance_to_line_segment_2d ( pt1 , pt2 , pt , tol = None ) : if tol is None : tol = get_tol_2d ( ) return geometry . gm2DDistanceToLineSegmentWithTol ( pt1 , pt2 , pt , tol )
short_docstring: Computes the minimum distance between a point and a line segment.
short_docstring_tokens: Computes the minimum distance between a point and a line segment .
comment: """Computes the minimum distance between a point and a line segment.
  
      The closest point may be an endpoint. Checks to the tolerance passed in.
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line segment.
          pt2: Second point defining the line segment.
          pt: The point to find the distance to.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          The minimum distance between pt and the line.
      """