[sorry to snoop on the "Quad" code, but I couldn't help noticing]

I'm sure you only need to call sine and cosine once each for the rectangle drawing, using transformation
matrix... Transform one...