An axis-aligned immutable rectangular shape described by two points that define the minimum and maximum corners.
Parameters: |
|
---|
Return True if this bounding box is approximately equal to another box, within precision limits.
Return True if the box contains the specified point.
Parameters: |
|
---|---|
Return type: | bool |
Create a new shape by translating and scaling shape so that it fits in this bounding box. The shape is scaled evenly so that it retains the same aspect ratio.
Parameters: |
|
---|
Create a bounding box centered at a particular point.
Parameters: |
---|
Create a bounding box that encloses all of the specified points.
Creating a bounding box that completely encloses all of the shapes provided.
Return a new box resized from this one. The new box has its size changed by the specified amount, but remains centered on the same point.
Parameters: |
|
---|
Return a rectangular Polygon object with the same vertices as the bounding box.
Return type: | Polygon |
---|
The bounding box for this shape. For a BoundingBox instance, this is always itself.
The center point of the box.
The height of the box.
True if the box has zero area.
The maximum corner point for the shape. This is the corner with the largest x and y value.
The minimum corner point for the shape. This is the corner with the smallest x and y value.
The width of the box.