> universal formula for area of triangle:
>
> S=sqrt(p*(p-a)*(p-b)*(p-c))
>
> where a,b,c are lengths of edges and p is half of perimeter = (a+b+c)/2
>
Is that faster than using half the cross product of two of the sides?
(cosidering vcross is internal...)
Something like:
area = vlength(vcross(P1-P2,P3-P2))/2;
-josh
Post a reply to this message
|