original_docstring: Tests whether a point is on the same side of a line as a reference point, or on the line itself.
  
      Assumes reference_point is not on the line (within tol).
      Points are represented as (x, y, z) triples.
  
      Args:
          p1: The first point defining the line.
          p2: The second point defining the line.
          reference_point: A point on one side of the line.
          pt: Point to test.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          A tuple (result, distance).
          result is True if pt is either on the line or on the same side as reference_point, or False otherwise.
          distance is how far away from the line pt is. It will be negative if pt is on the same side of the line as
          reference_point, or positive if pt is on the opposite side of the line.
      
docstring: Tests whether a point is on the same side of a line as a reference point, or on the line itself.
  Assumes reference_point is not on the line (within tol).
  Points are represented as (x, y, z) triples.
docstring_tokens: Tests whether a point is on the same side of a line as a reference point or on the line itself . Assumes reference_point is not on the line ( within tol ) . Points are represented as ( x y z ) triples .
code: def inside_or_on_line_2d(p1, p2, reference_point, pt, tol=None):
      """Tests whether a point is on the same side of a line as a reference point, or on the line itself.
  
      Assumes reference_point is not on the line (within tol).
      Points are represented as (x, y, z) triples.
  
      Args:
          p1: The first point defining the line.
          p2: The second point defining the line.
          reference_point: A point on one side of the line.
          pt: Point to test.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          A tuple (result, distance).
          result is True if pt is either on the line or on the same side as reference_point, or False otherwise.
          distance is how far away from the line pt is. It will be negative if pt is on the same side of the line as
          reference_point, or positive if pt is on the opposite side of the line.
      """
      if tol is None:
          tol = get_tol_2d()
      return geometry.gmInsideOrOnLineWithTol(p1, p2, reference_point, pt, tol)
code_tokens: def inside_or_on_line_2d ( p1 , p2 , reference_point , pt , tol = None ) : if tol is None : tol = get_tol_2d ( ) return geometry . gmInsideOrOnLineWithTol ( p1 , p2 , reference_point , pt , tol )
short_docstring: Tests whether a point is on the same side of a line as a reference point, or on the line itself.
short_docstring_tokens: Tests whether a point is on the same side of a line as a reference point or on the line itself .
comment: """Tests whether a point is on the same side of a line as a reference point, or on the line itself.
  
      Assumes reference_point is not on the line (within tol).
      Points are represented as (x, y, z) triples.
  
      Args:
          p1: The first point defining the line.
          p2: The second point defining the line.
          reference_point: A point on one side of the line.
          pt: Point to test.
          tol: Tolerance. If omitted, uses global tolerance according to get_tol_2d().
  
      Returns:
          A tuple (result, distance).
          result is True if pt is either on the line or on the same side as reference_point, or False otherwise.
          distance is how far away from the line pt is. It will be negative if pt is on the same side of the line as
          reference_point, or positive if pt is on the opposite side of the line.
      """