fn bounding_box_offset_and_size(
rotation: &Rotation,
size: &Size,
) -> (Position, Size)Expand description
Given the Size of a box (width/height), compute the bounding-box size and offset when rotated some degrees. The offset is the distance from the top-left corner of the bounding box to the (originally) lower-left corner of the image.