original_docstring: Function to calculate offset curve for a line given by points x and y
      with a distance rho. If output_format = 'separate', the output are 
      two list x and y, if 'together, it outputs a unique set with where
      each component is  apari of x and y.
docstring: Function to calculate offset curve for a line given by points x and y
  with a distance rho. If output_format = 'separate', the output are
  two list x and y, if 'together, it outputs a unique set with where
  each component is  apari of x and y.
docstring_tokens: Function to calculate offset curve for a line given by points x and y with a distance rho . If output_format = ' separate ' the output are two list x and y if ' together it outputs a unique set with where each component is apari of x and y .
code: def offset_point(x, y, rho, output_format = 'separate'):
      """Function to calculate offset curve for a line given by points x and y
      with a distance rho. If output_format = 'separate', the output are 
      two list x and y, if 'together, it outputs a unique set with where
      each component is  apari of x and y.'"""
      if type(x) == np.array and type(y) == np.array:
          x_offset = x + rho*y/np.sqrt(x*x + y*y)
          y_offset = y - rho*x/np.sqrt(x*x + y*y)
      
      if type(x) == list and type(y) == list:
          x_offset = []
          y_offset = []
          for i in range(len(x)):
              # Ignore 0 points because they result in zero denominator
              try:
                  x_offset.append(x[i] + rho*y[i]/np.sqrt(x[i]**2 + y[i]**2))
                  y_offset.append(y[i] - rho*x[i]/np.sqrt(x[i]**2 + y[i]**2))
              except ZeroDivisionError:
                  continue
      #TODO: include option of eliminating lines that intersect
          
      if output_format == 'together':
          return zip(x_offset, y_offset)
      if output_format == 'separate': 
          return x_offset, y_offset
code_tokens: def offset_point ( x , y , rho , output_format = 'separate' ) : if type ( x ) == np . array and type ( y ) == np . array : x_offset = x + rho * y / np . sqrt ( x * x + y * y ) y_offset = y - rho * x / np . sqrt ( x * x + y * y ) if type ( x ) == list and type ( y ) == list : x_offset = [ ] y_offset = [ ] for i in range ( len ( x ) ) : try : x_offset . append ( x [ i ] + rho * y [ i ] / np . sqrt ( x [ i ] ** 2 + y [ i ] ** 2 ) ) y_offset . append ( y [ i ] - rho * x [ i ] / np . sqrt ( x [ i ] ** 2 + y [ i ] ** 2 ) ) except ZeroDivisionError : continue if output_format == 'together' : return zip ( x_offset , y_offset ) if output_format == 'separate' : return x_offset , y_offset
short_docstring: Function to calculate offset curve for a line given by points x and y
  with a distance rho.
short_docstring_tokens: Function to calculate offset curve for a line given by points x and y with a distance rho .
comment: """Function to calculate offset curve for a line given by points x and y
      with a distance rho. If output_format = 'separate', the output are 
      two list x and y, if 'together, it outputs a unique set with where
      each component is  apari of x and y.'"""$SEP$# Ignore 0 points because they result in zero denominator$SEP$#TODO: include option of eliminating lines that intersect