uwacan.positional.BoundingBox#
- class BoundingBox(west, south, east, north)[source]#
Bases:
objectRepresentation 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
centerThe center of the bounding box.
north_eastThe north-eest corner of the bounding box.
north_westThe north-west corner of the bounding box.
south_eastThe south-east corner of the bounding box.
south_westThe south-west corner of the bounding box.