A Flash Developer Resource Site

1. ## trig formula

I need to make a trig function and I can't find any examples on this one: the challenge is to calculate an angle, when the lengths of all three sides of a triangle are known, but no angles are known.

The only examples I can find assume that one angle of the triangle is already known. But there must be a way to do it if you know all three sides. Any suggestions?

2. you just need to use the law of cosines
Code:
```cos A = (b² + c² - a²) / 2bc
cos B = (a² + c² - b²) / 2ac
cos C = (a² + b² - c²) / 2ab```
so you can manipulate those around to just solve for the angle by doing:
Code:
```A = ArcCos[(b² + c² - a²) / 2bc]
B = ArcCos[(a² + c² - b²) / 2ac]
C = ArcCos[(a² + b² - c²) / 2ab]```
i hope that helps ya

ps..this isnt actionscript, its just regular math

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

 » Home » Movies » Tutorials » Submissions » Board » Links » Reviews » Feedback » Gallery » Fonts » The Lounge » Sound Loops » Sound FX » About FK » Sitemap