What is a formula (in terms of $x$ and $y$ coordinates) for rotating one point about another by $45$ degrees counterclockwise?
I've tried using: $$x'=x\cos(-45^{\circ})-y\cos(-45^{\circ})$$ $$y'=x\sin(-45^{\circ})+y\cos(-45^{\circ})$$
(I would, for instance, like to rotate rotate $(2, 1)$ by $-45^{\circ}$ degrees about $(2, 2)$)