[Bf-python] Mathutils additions

Anders Nilsson breakin at home.se
Sun Jul 18 16:13:07 CEST 2004


Area of triangle (pseudo-code)

Vector edge1=p1-p0 (vector subtraction)
Vector edge2=p2-p0
Vector temp=edge1.crossProduct(edge2)
float  area=getVectorLength(temp)/2.0

Anders Nilsson (breakin)

ps. Mail if you need the derivation of the "formula"






More information about the Bf-python mailing list