I would like to attempt what the following site performs with a rotated rectangle: http://www.mathopenref.com/coordrectangle.html
I am provided with the angle of rotation, and all initial vertex coordinates. Whenever I drag a vertex, I am able to automatically update the values of that coordinate, but I want the two closest vertices to the "dragged" vertex to change positions accordingly as well. So in the given case of seeking out the coordinate values of dx,dy I need to figure out individual equations for solving for dx and dy.
Call the angle $\theta$, the dragged point $D$ and the fixed point $F$. Write the equation for the line through $F$ with slope $m= \tan(\theta)$ and the equation for the line through $F$ with slope $\tan(\theta+\frac{\pi}{2})= -\frac{1}{m}$. Do the same for the lines through $D$. You will get the following four equations: $$y=mx+(y_F-mx_F)\tag{1}$$ $$y=-\frac{1}{m}x+(y_F+\frac{1}{m}x_F)\tag{2}$$ $$y=mx+(y_D-mx_D)\tag{3}$$ $$y=-\frac{1}{m}x+(y_D+\frac{1}{m}x_D)\tag{4}$$
Edit
The point of intersection between line $(1)$ and line $(4)$, call it point $A$, is one corner. We find it by subtracting $(4)$ from $(1)$, giving: $$0=mx+\frac{1}{m}x + (y_F-mx_F) - (y_D+\frac{1}{m}x_D)$$ Rearranging we get $$x_A = (\frac{m}{m^2+1})(y_D+\frac{1}{m}x_D - y_F+mx_F)$$ And using $(1)$ we get $$y_A=mx_A+(y_F-mx_F)$$ That is point $A$. In the same way, using $(2)$ and $(3)$ we find the other corner, point $B$: $$x_B = (\frac{m}{m^2+1})(y_F+\frac{1}{m}x_F - y_D+mx_D)$$ $$y_B=mx_B+(y_D-mx_D)$$
If $\theta$ is a multiple of $\frac{\pi}{2}$ you need to handle this (easier) case separately.