original_docstring: Finds the distance along a segment for the location closest to pt.
  
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line segment.
          pt2: Second point defining the line segment.
          pt: Point used to find the closest point on the segment.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          Parametric value along the line segment that is the closest to pt.
      
docstring: Finds the distance along a segment for the location closest to pt.
  Points are represented as (x, y, z) triples.
docstring_tokens: Finds the distance along a segment for the location closest to pt . Points are represented as ( x y z ) triples .
code: def pt_distance_along_segment_2d(pt1, pt2, pt, tol=None):
      """Finds the distance along a segment for the location closest to pt.
  
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line segment.
          pt2: Second point defining the line segment.
          pt: Point used to find the closest point on the segment.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          Parametric value along the line segment that is the closest to pt.
      """
      if tol is None:
          tol = get_tol_2d()
      return geometry.gmPtDistanceAlongSegment(pt1, pt2, pt, tol)
code_tokens: def pt_distance_along_segment_2d ( pt1 , pt2 , pt , tol = None ) : if tol is None : tol = get_tol_2d ( ) return geometry . gmPtDistanceAlongSegment ( pt1 , pt2 , pt , tol )
short_docstring: Finds the distance along a segment for the location closest to pt.
short_docstring_tokens: Finds the distance along a segment for the location closest to pt .
comment: """Finds the distance along a segment for the location closest to pt.
  
      Points are represented as (x, y, z) triples.
  
      Args:
          pt1: First point defining the line segment.
          pt2: Second point defining the line segment.
          pt: Point used to find the closest point on the segment.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          Parametric value along the line segment that is the closest to pt.
      """