[Bf-committers] High level Mathutils additions
Campbell J Barton
cbarton at metavr.com
Tue Dec 21 03:23:11 CET 2004
Hi, there are a number of math functions I find myself using a but, that
Id like to add into mathutils
Mathutils.TriArea(vec1, vec2, vec3)
- This would operate on 2d or 3d Vectors.
Mathutils.TriNormal(vec1, vec2, vec3)
- Return a unit length normal vector from 3 vectors - 3d only.
Mathutils.LineIntersect(vecA, vecB, vecX, vecY)
- works on a 2d or 3d vector, returns the intersection point or None if
the line does not intersect.
Make it possible to multiple a 3d vector by a 4x4 matrix, at the moment
you need to resize the vector to 4d and then do it-
this messes up Blenders internal state when you resize v.co to 4d- so
you need to make a copy which is also annoying.
Any ojections?
- Cam
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-committers
mailing list