Added helper stuff for rotated bounding boxes.