original_docstring: Tests whether pt is on the line segment defined by pt1 and pt2.
  
      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 test.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          True if the point is on the line segment, else False.
      
docstring: Tests whether pt is on the line segment defined by pt1 and pt2.
  Points are represented as (x, y, z) triples.
docstring_tokens: Tests whether pt is on the line segment defined by pt1 and pt2 . Points are represented as ( x y z ) triples .
code: def on_line_and_between_endpoints_2d(pt1, pt2, pt, tol=None):
      """Tests whether pt is on the line segment defined by pt1 and pt2.
  
      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 test.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          True if the point is on the line segment, else False.
      """
      if tol is None:
          tol = get_tol_2d()
      return geometry.gmOnLineAndBetweenEndpointsWithTol(pt1, pt2, pt, tol)
code_tokens: def on_line_and_between_endpoints_2d ( pt1 , pt2 , pt , tol = None ) : if tol is None : tol = get_tol_2d ( ) return geometry . gmOnLineAndBetweenEndpointsWithTol ( pt1 , pt2 , pt , tol )
short_docstring: Tests whether pt is on the line segment defined by pt1 and pt2.
short_docstring_tokens: Tests whether pt is on the line segment defined by pt1 and pt2 .
comment: """Tests whether pt is on the line segment defined by pt1 and pt2.
  
      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 test.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          True if the point is on the line segment, else False.
      """