Scilab Function
Last update : 3/11/2005

adreieck - area of triangles

Calling Sequence

A = adreieck(plist)

Parameters

Description

PLIST is a matrix with 3 rows. Each column contains the corners of a triangle. A is a vector, which contains the areas of the triangles.

The function is quite easy. The main lines are: v1=plist(2,:) - plist(1,:); v2=plist(3,:) - plist(1,:); A=abs(0.5 .*imag(v1 .*conj(v2)));

Examples

// Two triangles
pl=[0,1,(1+%i);0,3*%i,(4+3*%i)].'
A=adreieck(pl)
// Result should be ! 0.5   6 !

See Also

intriang ,   ipolygon ,  

Authors

Dr. Andreas Geissler geisslea@web.de