[Bf-python] Mathutils additions

Campbell Barton cbarton at metavr.com
Fri Jul 16 12:18:57 CEST 2004


Hi, there are some higher level functions Id like to impliment

Mathutils.getVecLength(vec)
Mathutils.setVecLength(vec) # scales the vector to a spesified length (a 
bit like making unit length and multiplying)
Mathutils.getVecDist(vecA, vecB) # measures the distance in 3d space 
between 2 vectors
Mathutils.getArea(vec1, vec2, vec3, (optional: vec4)) # returns the area 
of a tri or a quad in 3d space.


The names could realy be anything but Im interested to know if I coded 
this weather people would use it.


- Cam





More information about the Bf-python mailing list