
Please see image first..
I have as input the following (I presume these are in effect Euclidean coordinates):
- The angle and the length of the red line.
- The angle and the length of the green line.
- The angle of the purple line (but not the length!)
What I need to find out:
- The intersection point between the blue and the purple lines. Or I can do with just the length of the purple segment between the start and the intersection point.
Any help much appreciated!!
You know the angle between the red and green sides, call that $\beta.$ From the law of cosines, you know the length of the blue side, call that $b.$ Call the read and green sides $r,g.$ Call the opposite angles $\rho, \gamma. $ You know these from the law of sines.
The purple line splits the angle $\beta$ into two known pieces, call those $\beta_r$ on the red side, $\beta_g$ on the green side; also splits length $b$ into two pieces, $b_r,b_g.$ Call the purple length $p.$
Then
$$ b_r + b_g = b, $$ $$ b_r^2 = r^2 + p^2 - 2 r p \cos \beta_r $$ $$ b_g^2 = g^2 + p^2 - 2 g p \cos \beta_g $$