Rotation and resizing works for triangles. Currently working on
rectangles