using integers for rotated rectangles logging