class_docstr: A rectangular bounding box defined either by two points forming
  an axis-aligned rectangle (or simply a radius for a square).
class_docstr_tok: ["A","rectangular","bounding","box","defined","either","by","two","points","forming","an","axis-aligned","rectangle","(","or","simply","a","radius","for","a","square",")","."]
docstr: Create a BoundingBox.
  
  Either 'radius' or 'points' can be specified for the AARectangle.
  
  If neither radius nor points is passed in, create a default
  AARectangle defined by (-0.5,-0.5),(0.5,0.5).
docstr_tok: ["Create","a","BoundingBox",".","Either","'radius","'","or","'points","'","can","be","specified","for","the","AARectangle",".","If","neither","radius","nor","points","is","passed","in",",","create","a","default","AARectangle","defined","by","(","-0.5",",","-0.5",")",",","(","0.5,0.5",")","."]
code: def __init__(self, **args):
      """
      Create a BoundingBox.
  
      Either 'radius' or 'points' can be specified for the AARectangle.
  
      If neither radius nor points is passed in, create a default
      AARectangle defined by (-0.5,-0.5),(0.5,0.5).
      """
      # if present, 'radius', 'min_radius', and 'points' are deleted from
      # args before they're passed to the superclass (because they
      # aren't parameters to be set)
      if "radius" in args:
          r = args["radius"]
          del args["radius"]
  
          self._aarect = AARectangle((-r, -r), (r, r))
  
      elif "points" in args:
          self._aarect = AARectangle(*args["points"])
          del args["points"]
      else:
          self._aarect = AARectangle((-0.5, -0.5), (0.5, 0.5))
  
      super().__init__(**args)
  
imports: from param.parameterized import get_occupied_slots
  from .util import datetime_types
label_desc: Use image node_id 4 to create a new BoundingBox object from inherited base classes: BoundingRegion with example: obj = BoundingBox()