
I have a simple right-angle triangle $\triangle ABC$. I know the coordinates of $B$ and $C$ and the distances $AB = c$, $AC = b$ and $BC = a$. How can I find the coordinates of point $A$. For example, if $B = (4,3)$ and $C = (4,0)$ and the distance from A to B is $5$, how can I get the coordinates of $A$, which in this case $A = (0,0)$.
Edit:
The $AC$ and $BC$ Wont always be parallel to the $x$ and $y$ axis respectively
There is a way to calculate the coordinates of $A$ directly. But note, that there are always $2$ possible points for $A$ satisfying the given conditions (just reflect the triangle about $BC$).
$$\vec{OA} = \vec{OC} \pm \frac ba \begin{pmatrix}-a_y \\ a_x \end{pmatrix}$$
Additional example referring to a comment:
$$\vec{OA} = \begin{pmatrix}4 \\ 0 \end{pmatrix} \pm \begin{pmatrix}-4 \\ 0\end{pmatrix}\Rightarrow \vec{OA}=\begin{pmatrix}0 \\ 0 \end{pmatrix} \mbox{ or } \vec{OA}=\begin{pmatrix}8 \\ 0 \end{pmatrix}$$