[Flashcoders] triangle help
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
Re: [Flashcoders] triangle help
h - hypoteneuse l1,l2 - the other sides a1 - angle next to l2 sin(a1) = l1/h cos(a1) = l2/h assuming you know l1, then h=l1/sin(a1) and then l2 = h* cos(a1) - Original Message From: Jason Rayles [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, January 27, 2007 7:24:05 AM Subject: [Flashcoders] triangle help 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 Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. ___ 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
Re: [Flashcoders] triangle help
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
Re: [Flashcoders] triangle help
Law of Sines will solve your problem. http://en.wikipedia.org/wiki/Law_of_sines Jason Rayles [EMAIL PROTECTED] 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 - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. ___ 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