Rotating a Shape

Does anybody know the math formula for making a shape rotate? I have no idea how it's done. Any help would be much appreciated, thanks.

Does this work for you? Found it on wiki - a good resource that.
Looks rather complicated xD, but exactly what I was looking for, thank you.
Topic archived. No new replies allowed.