– edit // I meant to say calculate the ‘angles’ of an isosceles triangle using the sides (not points) // –
Ok, I’m going to kind of step-by-step this one and post as I come up with new info.
Basically, an isosceles triangle has 2 equal sides and the 3rd side is of a different length and called a hypotenuse. This also means that there are always 2 equal angles and a third angle which is different from the other 2.
I’ve gotten as far as calculating the length of one of the lines that is the same as the other and using that I can calculate the hypotenuse.
(sameLineLength is the length of my equal lines.)
solveIsoscelesHypotenus = int(Math.sqrt(2*(sameLineLength*sameLineLength))*100)/100;
Ok great. So now I have calculated all 3 sides of my isosceles.
Using this, I can calculate the 3 angles of the triangle. Solve using SSS (side, side, side)…
I have looked up some formulas to do this:
http://www.teacherschoice.com.au/Maths_Library/Trigonometry/solve_trig_SSS.htm
Now as you can see, the formulas are pretty clear. But when I try to plug them in, I’m getting some wacky numbers that don’t make sense so obviously I’m doing something wrong.
My hunch is that somewhere along the way my conversions from radians to degrees and such isn’t working the way they should with the cos and sin formulas.
Can someone help me to translate those formulas into as3 as something flash can understand as a formula? If I could get the proper answer in degrees it would be great. I will post more as it comes to me. cheers.