a
B ------- C
\ |
\ |
\ |
c \ | b
\ |
\ |
\|
A
Alright, this is a triangle I have, and these are the things that are known: the coordinates of A and B, the lengths of a and c, as well as the fact that the angle under C is always a right angle. I need to find the coordinates of C.
If you choose to answer this, please be detailed in your explanation of the answer. Thank you.
Edit: I am using this in video game programming. The two objects are parts of a sentry gun. C is at the base of the barrel of the gun, and at a fixed distance (a) from B. B is the gimbal for the gun, and its position does not change. A represents an enemy, whose position does change, and the position of C needs to change on the gimbal (B) to continue pointing at the enemy.
I hope that made my intentions a bit clearer.
So far, all three answers are outside my scope of understanding. My knowledge is really lacking, perhaps too much for me to be able to tackle this problem. I would still like to try, however.
It would help me a lot to see this problem solved using real coordinates. Thank you for your answers so far.
1) Notation: $B = (x_b,y_b), A = (x_a,y_a),C = (x_c,y_c)$
2) The fact that the $\angle C$ is $90^\circ$ helps determine the value of
$b = +\sqrt{c^2 - a^2}$
3) Now you have equation of two circles centered around A and B respectively, with coordinates:
$$ C_1 : (x-x_a)^2 + (y-y_a)^2 = b^2 $$ $$ C_2 : (x-x_b)^2 + (y-y_b)^2 = a^2 $$
You need to find a valid intersection of these two circles satisfying the fact that the angle formed by $AC$ and $BC$ is right one.
I am not going past this since you need to show your efforts too. Best of Luck.