original_docstring:  Calculate the align point depending on the line number. 
          
docstring: Calculate the align point depending on the line number.
docstring_tokens: Calculate the align point depending on the line number .
code: def _get_align_point(self, linenum: int) -> 'Vertex':
          """ Calculate the align point depending on the line number. 
          """
          x = self.insert[0]
          y = self.insert[1]
          try:
              z = self.insert[2]
          except IndexError:
              z = 0.
          # rotation not respected
  
          if self.align.startswith('TOP'):
              y -= linenum * self.lineheight
          elif self.align.startswith('MIDDLE'):
              y0 = linenum * self.lineheight
              fullheight = (len(self.textlines) - 1) * self.lineheight
              y += (fullheight / 2) - y0
          else:  # BOTTOM
              y += (len(self.textlines) - 1 - linenum) * self.lineheight
          return self._rotate((x, y, z))
code_tokens: def _get_align_point ( self , linenum : int ) -> 'Vertex' : x = self . insert [ 0 ] y = self . insert [ 1 ] try : z = self . insert [ 2 ] except IndexError : z = 0. if self . align . startswith ( 'TOP' ) : y -= linenum * self . lineheight elif self . align . startswith ( 'MIDDLE' ) : y0 = linenum * self . lineheight fullheight = ( len ( self . textlines ) - 1 ) * self . lineheight y += ( fullheight / 2 ) - y0 else : y += ( len ( self . textlines ) - 1 - linenum ) * self . lineheight return self . _rotate ( ( x , y , z ) )
short_docstring: Calculate the align point depending on the line number.
short_docstring_tokens: Calculate the align point depending on the line number .
comment: """ Calculate the align point depending on the line number. 
          """$SEP$# rotation not respected$SEP$# BOTTOM