BoundingBox#

class BoundingBox(g=None)#

Bases: object

Axis-aligned bounding box (legacy/limited use).

__init__(g=None)#

Methods

__init__([g])

add_padding([units, fraction])

Add absolute (units) or proportional (fraction) padding to the box.

make_square()

Expand to the larger side to make the box square (centered).

make_square()#

Expand to the larger side to make the box square (centered).

add_padding(units=None, fraction=None)#

Add absolute (units) or proportional (fraction) padding to the box.