Here is an example of rotation about the a 2D pointc specified by cx and cy.

theta (in degrees) cx cy
...
...