original_docstring: 
          Create bounding box around ellipse. Compatible with OpenCV's cv2.rectangle() drawing operation (returns points
          as integer tuples).
  
          Returns
          -------
          list
              List of two points (tuples) - top left and bottom right corner of bounding box.
          
docstring: Create bounding box around ellipse. Compatible with OpenCV's cv2.rectangle() drawing operation (returns points
  as integer tuples).
  
  Returns
  
  list
  List of two points (tuples) - top left and bottom right corner of bounding box.
docstring_tokens: Create bounding box around ellipse . Compatible with OpenCV ' s cv2 . rectangle () drawing operation ( returns points as integer tuples ) . Returns list List of two points ( tuples ) - top left and bottom right corner of bounding box .
code: def bounding_box(self) -> list:
          """
          Create bounding box around ellipse. Compatible with OpenCV's cv2.rectangle() drawing operation (returns points
          as integer tuples).
  
          Returns
          -------
          list
              List of two points (tuples) - top left and bottom right corner of bounding box.
          """
  
          theta = np.radians(self.angle)
  
          a = self.height / 2
          b = self.width / 2
  
          # Ellipse limits on given axis
          y = np.sqrt(a**2 * np.cos(theta)**2 + b**2 * np.sin(theta)**2)
          x = np.sqrt(a**2 * np.sin(theta)**2 + b**2 * np.cos(theta)**2)
  
          top_left = self.cx - int(x), self.cy - int(y)
          bottom_right = self.cx + int(x), self.cy + int(y)
  
          return [top_left, bottom_right]
code_tokens: def bounding_box ( self ) -> list : theta = np . radians ( self . angle ) a = self . height / 2 b = self . width / 2 y = np . sqrt ( a ** 2 * np . cos ( theta ) ** 2 + b ** 2 * np . sin ( theta ) ** 2 ) x = np . sqrt ( a ** 2 * np . sin ( theta ) ** 2 + b ** 2 * np . cos ( theta ) ** 2 ) top_left = self . cx - int ( x ) , self . cy - int ( y ) bottom_right = self . cx + int ( x ) , self . cy + int ( y ) return [ top_left , bottom_right ]
short_docstring: Create bounding box around ellipse.
short_docstring_tokens: Create bounding box around ellipse .
comment: """
          Create bounding box around ellipse. Compatible with OpenCV's cv2.rectangle() drawing operation (returns points
          as integer tuples).
  
          Returns
          -------
          list
              List of two points (tuples) - top left and bottom right corner of bounding box.
          """$SEP$# Ellipse limits on given axis