Reputation: 67
I have a question about triangle geometrics: I want to find the (x,z) coordinates of the end point of the red line, shown in the image. For other details see image. Can somebody help me with the formulas needed to find the coordinate? Hope somebody can help me]1
Upvotes: 0
Views: 75
Reputation: 52067
The red line has the equation x + z = 5
.
So then find the point on this line which has distance 20 from (0,0) and x is positive - this is apex of the triangle.
Then find the point which is 20 away from that point. Or just compute (x0-20/sqrt(2), z0+20/sqrt(2)) where (x0,z0) is the apex.
Upvotes: 1
Reputation: 7293
The middle point between (a,b) and (c,d) is ((a+c)/2, (b+d)/2).
On your picture, it is (2.5, 2.5).
Upvotes: 1