You can also check this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-December/177264.html

where i share a class of mine called TriangleSolver ...

in your case, you can use the sine rule method

Sine Rule : side1/angle1 = side2/angle2 = side3/angle3
or hypotheneuse/90 = side2/angle2  = side3/(180 - (90+angle2))

angle1 for example is the angle opposite to side1


var otherSide:Number = TriangleSolver.sineRule(null, angle1, side2, angle2); // will return side1

var otherSide:Number = TriangleSolver.sineRule(side1, null, side2, angle2); // will return angle1

HTH

Alain



Jason Rayles wrote:
Given the interior angles and the length of one side (not the hypoteneuse) of a right triangle, how do I calculate (in Flash) the length of the other 2 sides?

Thanks,
Jason
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


.

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to