Determines the bounding box of some object.