Get the information you need quickly and easily with IDNLearn.com. Join our Q&A platform to access reliable and detailed answers from experts in various fields.
Answer:
If you rotate point (px, py) around point (ox, oy) by angle theta you'll get:
p'x = cos(theta) * (px-ox) - sin(theta) * (py-oy) + ox
p'y = sin(theta) * (px-ox) + cos(theta) * (py-oy) + oy