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(BoundingBox, self).__init__(**args)
def __init__ ( self , ** args ) : 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 ( BoundingBox , self ) . __init__ ( ** 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).