I have a 3d triangle ABC. Lengths AB, BC, and AC are known. Coordinates of points A and B are known. Point C only the y value of the coordinate is known.
I believe there are 2 points that can satisfy the above constraints, I just can't find a method to derive them. If it simplifies calculations, either A or B can be located at (0,0,0).
I do not care how it can be solved, as long as I can implement it in Ruby.
Any guidance will be greatly appreciated.
Okay, using Sigurs advice, I can solve for x and z of point C. The code below seems to work correctly in my application. I verified the output of a few points with my CAD software.
Is there a cleaner method, maybe using Matrix or Vector math? The equations are extremely long. I broke the equation for c.z up into a few parts to try and reduce typos.
known variables
find c.x and c.z
below is my equations coded in ruby that has passed my unit tests so far.