I was wondering if it is possible to get a point's specific rotation after it has been applied a certain but entirely arbitrary affine transformation $F$. To make things more clear, I have an affine transformation:
$F=\begin{bmatrix}a && b && t_1 \\ c && d && t_2 \\ 0 && 0 && 1\end{bmatrix}$
And a point $\vec{v}=<x,y,1>$.
I know it is difficult to decompose the affine transformation when the order of the individual transformations is not known. I'm wondering if it still is possible to get the rotation of a specific point, because I know the new point will be positioned at $\begin{bmatrix} a x + b y + t_1 \\ cx + dy + t_2 \\ 1\end{bmatrix}$. Now I was being very naive and thought that maybe this would work:
$\theta_\vec{v}=lim_{h\to0}{rot(\begin{bmatrix}ax+by+t_1 \\ cx+dy+t_2\end{bmatrix},\begin{bmatrix}a(x+h)+by+t_1 \\ c(x+h)+dy+t_2\end{bmatrix})}$
Where $rot(\vec{v_1},\vec{v_2})$ could be defined as $acos(\frac{\vec{v_1}\cdot{\vec{v_2}}}{\lvert{\vec{v_1}}\rvert.\lvert{\vec{v_2}}\rvert})$, yielding:
$acos(\frac{(ax+by+t_1)(a(x+h)+by+t_1)+(cx+dy+t_2)(c(x+h)+d(y+h)+t2)}{\sqrt{(ax+by+t_1)^2+(dx+cy+t_2)^2}\sqrt{(a(x+h)+b(y+h)+t_1)^2+(d(x+h)+cy+t_2)^2}})$.
I tried to solve the equation and run it through my program but didn't get the expected result. Is there anything I'm doing wrong?
Update
Thanks to TL Davis, I noticed a mistake in my equations. It should be $\theta_\vec{v}=lim_{h\to0}{rot(\begin{bmatrix}ax+by+t_1 \\ cx+dy+t_2\end{bmatrix},\begin{bmatrix}a(x+h)+by+t_1 \\ c(x+h)+dy+t_2\end{bmatrix})}$. If I have the time I'll see if that works.