original_docstring: Determines whether a point pt is on the line defined by p1 and p2.
  
      If p1 and p2 are equal within tol, this function may fail.
      Points are represented as (x, y, z) triples.
  
      Args:
          p1: First point defining a line.
          p2: Second point defining a line.
          pt: The point to test.
          tol: Tolerance for geometric comparison. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          True if the point is on the line passing through p1 and p2 within tolerance.
      
docstring: Determines whether a point pt is on the line defined by p1 and p2.
  If p1 and p2 are equal within tol, this function may fail.
  Points are represented as (x, y, z) triples.
docstring_tokens: Determines whether a point pt is on the line defined by p1 and p2 . If p1 and p2 are equal within tol this function may fail . Points are represented as ( x y z ) triples .
code: def on_line_2d(p1, p2, pt, tol=None):
      """Determines whether a point pt is on the line defined by p1 and p2.
  
      If p1 and p2 are equal within tol, this function may fail.
      Points are represented as (x, y, z) triples.
  
      Args:
          p1: First point defining a line.
          p2: Second point defining a line.
          pt: The point to test.
          tol: Tolerance for geometric comparison. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          True if the point is on the line passing through p1 and p2 within tolerance.
      """
      if tol is None:
          tol = get_tol_2d()
      return geometry.gmOnLineWithTol(p1, p2, pt, tol)
code_tokens: def on_line_2d ( p1 , p2 , pt , tol = None ) : if tol is None : tol = get_tol_2d ( ) return geometry . gmOnLineWithTol ( p1 , p2 , pt , tol )
short_docstring: Determines whether a point pt is on the line defined by p1 and p2.
short_docstring_tokens: Determines whether a point pt is on the line defined by p1 and p2 .
comment: """Determines whether a point pt is on the line defined by p1 and p2.
  
      If p1 and p2 are equal within tol, this function may fail.
      Points are represented as (x, y, z) triples.
  
      Args:
          p1: First point defining a line.
          p2: Second point defining a line.
          pt: The point to test.
          tol: Tolerance for geometric comparison. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          True if the point is on the line passing through p1 and p2 within tolerance.
      """