parameters: (self, image, incoming)
return_statement: return n, num
docstring: Find the position of the line on the given object.
  
          Specify whether incoming or outgoing lines are being considered
          with incoming.
docstring_summary: Find the position of the line on the given object.
docstring_tokens: Find the position of the line on the given object .
function: def FindNth(self, image, incoming):
          """Find the position of the line on the given object.
  
          Specify whether incoming or outgoing lines are being considered
          with incoming.
          """
          n = -1
          num = 0
          
          if image == self._to:
              this_attachment = self._attachmentTo
          else:
              this_attachment = self._attachmentFrom
  
          # Find number of lines going into / out of this particular attachment point
          for line in image.GetLines():
              if line._from == image:
                  # This is the nth line attached to 'image'
                  if line == self and not incoming:
                      n = num
  
                  # Increment num count if this is the same side (attachment number)
                  if line._attachmentFrom == this_attachment:
                      num += 1
  
              if line._to == image:
                  # This is the nth line attached to 'image'
                  if line == self and incoming:
                      n = num
  
                  # Increment num count if this is the same side (attachment number)
                  if line._attachmentTo == this_attachment:
                      num += 1
  
          return n, num
function_tokens: def FindNth ( self , image , incoming ) : n = - 1 num = 0 if image == self . _to : this_attachment = self . _attachmentTo else : this_attachment = self . _attachmentFrom # Find number of lines going into / out of this particular attachment point for line in image . GetLines ( ) : if line . _from == image : # This is the nth line attached to 'image' if line == self and not incoming : n = num # Increment num count if this is the same side (attachment number) if line . _attachmentFrom == this_attachment : num += 1 if line . _to == image : # This is the nth line attached to 'image' if line == self and incoming : n = num # Increment num count if this is the same side (attachment number) if line . _attachmentTo == this_attachment : num += 1 return n , num