I want to locate precisely the 3rd coordinate of a right angled triangle. I have:
- the length of three sides
- The three angles
- The other two coordinates of the triangle
The triangle can lie in any orientation in 2D coordinate system.
The three sides, angles and coordinates could be different in the piece of experiment and I am not working with any fix pair of values... I am actually dealing with multiple pairs of all above mentioned values.
I need a reliable and accurate way of finding the 3rd coordinate. Currently I have this formula but it calculated two pairs of coordinates (forming a butterfly) instead of the triangle.
In the diagram that I mentioned and to which a (potential) solution has been presented, I have a confusion/connected question (because I believe this could be the cause of the problem).
Can $(x_1, y_1)$ and $(x_2, y_2)$ be any pair of the right angles triangle? or does $(x_1, y_1)$ must the coordinates of the right angle and $(x_2, y_2)$ for the base vertex?
Currently I get this:
As you can see, the coordinate I am trying to get is draw way-off the border of the circle. The coordinate should be found on the border of the circles and not that far away in space.
As you might have guessed that I am trying to draw tangents between each circle. I have worked out rest of the code but the coordinate is being calculated incorrectly and thus the right angled triangle is formed incorrectly..
Edit (ignore this heading please):
I want to find only ONE triangle instead of the four possibilities.
I have already reviewed these urls: