uwacan.positional.BoundingBox#

class BoundingBox(west, south, east, north)[source]#

Bases: object

Representation of a bounding box.

Parameters:
westfloat

Western edge of the bounding box.

southfloat

Southern edge of the bounding box.

eastfloat

Eastern edge of the bounding box.

northfloat

Western edge of the bounding box.

Methods

extent()

Calculate the extent of this bounding box.

from_center_and_size(latitude, longitude, ...)

Create a bounding box from a center, width, and height.

overlaps(other)

Check if another bounding box overlaps with this one.

Inherited methods

Attributes

center

The center of the bounding box.

north_east

The north-eest corner of the bounding box.

north_west

The north-west corner of the bounding box.

south_east

The south-east corner of the bounding box.

south_west

The south-west corner of the bounding box.