I have the following coordinate systems:
$$x= \begin{pmatrix} 1\\ 0\\ \end{pmatrix}\quad y= \begin{pmatrix} 0\\ 1\\ \end{pmatrix}$$
and:
$$u= \begin{pmatrix} 1\\ 1\\ \end{pmatrix}\quad v= \begin{pmatrix} -1\\ 1\\ \end{pmatrix}$$
$u$ and $v$ are in the $xy$ coordinate system and I have the point $P_{xy} = \begin{pmatrix} -1\\ 0.5\\ \end{pmatrix}$.
I want to move point $P_{xy}$ in the $uv$ coordinate system. Our professor gave us the following formula to calculate $P_{uv}$.
$$ \begin{pmatrix} P_u\\ P_v\\ \end{pmatrix}=\begin{pmatrix} u_x & u_y \\ v_x & v_y\\ \end{pmatrix}\begin{pmatrix} P_x\\ P_y\\ \end{pmatrix} $$
But I get the following output for $P_{uv}= \begin{pmatrix} -0.5\\ 0.5\\ \end{pmatrix}$. And I don't think that this is correct.
Now I have my own ideas how to do this. For example I could rotate $u$ and $v$ so that they align with $x$ and $y$. Then I rotate the point with the same amount. I also think that I can use the dot product for this.
But the formula from above looks really neat, I just want to make sure that it is correct?