original_docstring: Get the closest distance from pt to the line defined by pt1 and pt2.
  
      Unlike distance_to_line_segment_2d, points outside the line segment
      defined by pt1 and pt2 will be considered when finding the closest
      distance to pt.
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line.
          pt2: Second point defining the line.
          pt: Point to find the distance for.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          The minimum distance between pt and the line.
      
docstring: Get the closest distance from pt to the line defined by pt1 and pt2.
  Unlike distance_to_line_segment_2d, points outside the line segment
  defined by pt1 and pt2 will be considered when finding the closest
  distance to pt.
  Points are represented as (x, y, z) triples.
docstring_tokens: Get the closest distance from pt to the line defined by pt1 and pt2 . Unlike distance_to_line_segment_2d points outside the line segment defined by pt1 and pt2 will be considered when finding the closest distance to pt . Points are represented as ( x y z ) triples .
code: def distance_to_line_2d(pt1, pt2, pt, tol=None):
      """Get the closest distance from pt to the line defined by pt1 and pt2.
  
      Unlike distance_to_line_segment_2d, points outside the line segment
      defined by pt1 and pt2 will be considered when finding the closest
      distance to pt.
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line.
          pt2: Second point defining the line.
          pt: Point to find the distance for.
          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.gm2DDistanceToLineWithTol(pt1, pt2, pt, tol)
code_tokens: def distance_to_line_2d ( pt1 , pt2 , pt , tol = None ) : if tol is None : tol = get_tol_2d ( ) return geometry . gm2DDistanceToLineWithTol ( pt1 , pt2 , pt , tol )
short_docstring: Get the closest distance from pt to the line defined by pt1 and pt2.
short_docstring_tokens: Get the closest distance from pt to the line defined by pt1 and pt2 .
comment: """Get the closest distance from pt to the line defined by pt1 and pt2.
  
      Unlike distance_to_line_segment_2d, points outside the line segment
      defined by pt1 and pt2 will be considered when finding the closest
      distance to pt.
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line.
          pt2: Second point defining the line.
          pt: Point to find the distance for.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          The minimum distance between pt and the line.
      """