<p>You can get the coordinates of C by using circle equations for one circle C_A with point A as center and AC as its radius and one circle C_B with point B as its center and BC as its radius.</p>

<p>Now you can calculate their intersection points, which leaves you with 2 points (iff C is not on a line between A and B).</p>

<p>I am not entirely sure how you want to determine which of the two candidates C_1 and C_2 is the correct one. If I understand correctly, you always label the triangle counterclockwise. There is a <a href="https://stackoverflow.com/questions/1165647/how-to-determine-if-a-list-of-polygon-points-are-in-clockwise-order">neat way</a> to check this, so you should have everything to find your point.</p>

CC BY-SA 3.0
2017-07-24T09:23:50.647Z
2017-07-24T09:23:50.647Z
Tare
<p>There are several ways of doing this, the circle intersection way is by no metrics the easiest way. If you have any standard vector maths library available then the simpest way in my mind is as follows:</p>

<ul>
<li>Calculate the direction vector a-b, by subtracting vector a from vector b. Then normalize this vector then multiply it by length of b-c</li>
<li>calculate the angle at corner b</li>
<li>rotate the vector calculated by 180 +- the angle. (There are 2 solutions).</li>
<li>add b to that vector. And you are done.</li>
</ul>

CC BY-SA 3.0
2017-07-28T07:33:30.007Z
2017-07-28T07:33:30.007Z
joojaa
<p>As mentioned by previous answers, the best way to solve your issue is to compute the intersections of the two circles centered at A and B. Since you will have two candidates, you will need to choose a specific order for your edges to only select one candidate.</p>

CC BY-SA 3.0
2017-07-27T10:37:21.597Z
2017-07-27T10:37:21.597Z
AlexM
<p>I would like to return the XY coordinates of vertex C using math formula. 
I have 5 input data what I always know and can be used for solution (green in the image): I know X; Y; coordinates of point A and point B (Ax, Ay, Bx, By), and I know the length of all three sides of triangle (AB, AC, AD). Please help how to get the values of X Y coordinate of point C, what is 70/30 in the example, but I have no formula to get back them.</p>

<p><a href="https://i.sstatic.net/q6WGF.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/q6WGF.jpg" alt="Example situation to get coordinates with input values"></a></p>

<p>I know that more than one solution of this formula, but:</p>

<ul>
<li>Coordinates cannot be in negative areas. All coordinates must be positive.</li>
<li>I always use 1 direction for vertex labelling, but because I always know the length of AC and BC, I think to change the label from A to B will not change the position of C.</li>
</ul>

<p>Thanks!</p>

CC BY-SA 3.0
2017-07-24T09:12:59.793Z
https://math.stackexchange.com/questions/187107/calculate-coordinates-of-3rd-point-vertex-of-a-scalene-triangle-if-angles-and?rq=1
Rotem
CC BY-SA 3.0
2017-07-24T10:40:51.883Z
I tried to implement this to my inputs but not succeed.
Perjés László
CC BY-SA 3.0
2017-07-26T17:04:18.477Z
Please show what you tried to implement. Are you familiar with all the necessary mathematics used here? Can you solve this problem by hand?
Code-Apprentice
<triangulation><mathematics>
Return x; y; coordinates of vertex C of triangle
Perjés László
# Return x; y; coordinates of vertex C of triangle

(Asked by: username_0 on 2017-07-23)

I would like to return the XY coordinates of vertex C using math formula.
I have 5 input data what I always know and can be used for solution (green in the image): I know X; Y; coordinates of point A and point B (Ax, Ay, Bx, By), and I know the length of all three sides of triangle (AB, AC, AD). Please help how to get the values of X Y coordinate of point C, what is 70/30 in the example, but I have no formula to get back them.

[![Example situation to get coordinates with input values](https://i.sstatic.net/q6WGF.jpg)](https://i.sstatic.net/q6WGF.jpg)

I know that more than one solution of this formula, but:

* Coordinates cannot be in negative areas. All coordinates must be positive.
* I always use 1 direction for vertex labelling, but because I always know the length of AC and BC, I think to change the label from A to B will not change the position of C.

Thanks!

**Tags:** triangulation, mathematics

> **Comments:**
> **username_1**: https://math.stackexchange.com/questions/187107/calculate-coordinates-of-3rd-point-vertex-of-a-scalene-triangle-if-angles-and?rq=1  
> **username_0**: I tried to implement this to my inputs but not succeed.  
> **username_2**: Please show what you tried to implement. Are you familiar with all the necessary mathematics used here? Can you solve this problem by hand?  

---

## 3 answers

### Answer by username_3 on 2017-07-24. Score: 1

You can get the coordinates of C by using circle equations for one circle C\_A with point A as center and AC as its radius and one circle C\_B with point B as its center and BC as its radius.

Now you can calculate their intersection points, which leaves you with 2 points (iff C is not on a line between A and B).

I am not entirely sure how you want to determine which of the two candidates C\_1 and C\_2 is the correct one. If I understand correctly, you always label the triangle counterclockwise. There is a [neat way](https://stackoverflow.com/questions/1165647/how-to-determine-if-a-list-of-polygon-points-are-in-clockwise-order) to check this, so you should have everything to find your point.


---

### Answer by username_4 on 2017-07-28. Score: 0

There are several ways of doing this, the circle intersection way is by no metrics the easiest way. If you have any standard vector maths library available then the simpest way in my mind is as follows:

* Calculate the direction vector a-b, by subtracting vector a from vector b. Then normalize this vector then multiply it by length of b-c
* calculate the angle at corner b
* rotate the vector calculated by 180 +- the angle. (There are 2 solutions).
* add b to that vector. And you are done.


---

### Answer by username_5 on 2017-07-27. Score: -1

As mentioned by previous answers, the best way to solve your issue is to compute the intersections of the two circles centered at A and B. Since you will have two candidates, you will need to choose a specific order for your edges to only select one candidate.


---

