area of triangle
How do I find the area of a triangle in 2D if I know the coordinates of the corners?

Re: area of triangle
use Heron's law:
a^2 = s(sa)(sb)(sc) a=area a,b,c = side lengths s=0.5*(a+b+c) (works well for 3d too) 
Re: area of triangle

Re: area of triangle
The three vertices are ordered in counterclockwise order, (x1,y1), (x2,y2), (x3,y3). Then,
S=0.5*(x1*(y2y3)+x2*(y3y1)+x3*(y1y2)) which can be derived easily by computing a cross product of a parir (any pair) of the side vectors. Bye 
Re: area of triangle
Aha! Thanks.

Re: area of triangle
Hi
The very best way to do it is to calculate the cross product using two vectors (sharing the same origen)(one of the corner vertex of the triangle) which forms the edges of the triangle. Half the norm of the resulting vector will give ya the surface area AND by doing so you already calculated a normal to the surface which ye want anyhow. Just make sure your convention is correct, otherwise your normal vector might point in the wrong direction. Cheers Barry 
All times are GMT 4. The time now is 04:55. 