I'd stick to using Heron's rule -- there is no reason why it shouldn't work
given correct inputs, and it is less expensive computationally.

On 12/14/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:

> I'm trying to figure the area of a triangle in Actionscript
> using the perimeter values only, not the traditional simple formula:
>
>      area = (height/2)*base

Try: area = 1/2 * a * b * sin(C), where C is the angle between the two
sides
a and b. You can calculate C using the cosine rule: c^2 = a^2 + b^2 - 2ab
*
cos(C). A bit of manipulation will give you sin(C) in terms of cos(C) so
you
can avoid using any trig (sorry I have to rush so I don't have time to do
it
right now)

HTH
Danny

_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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