Blender Git Commit Log

Git Commits -> Revision 998198a

Revision 998198a by Campbell Barton (master)
February 5, 2011, 09:57 (GMT)
mathutils rotate functions for Euler/Quaternion/Matrix/Vector types.
each accept Euler/Quaternion/Matrix types.

eg:
Euler.rotate(Quaternion(axis, angle))
Vector.rotate(Euler((pi/2, 0, 0)))

matrix.resize_4x4() and euler.make_compatible() were still returning an instance of themselves, now return None.

Commit Details:

Full Hash: 998198a041aebad75c31db19e6cd3d64b61f2b3c
SVN Revision: 34649
Parent Commit: 8b52087
Lines Changed: +165, -44

9 Modified Paths:

/doc/python_api/examples/mathutils.py (+4, -4) (Diff)
/doc/python_api/examples/mathutils.Vector.py (+1, -1) (Diff)
/source/blender/python/generic/mathutils.c (+44, -0) (Diff)
/source/blender/python/generic/mathutils.h (+1, -0) (Diff)
/source/blender/python/generic/mathutils_Euler.c (+32, -8) (Diff)
/source/blender/python/generic/mathutils_Matrix.c (+37, -6) (Diff)
/source/blender/python/generic/mathutils_Matrix.h (+2, -0) (Diff)
/source/blender/python/generic/mathutils_quat.c (+31, -0) (Diff)
/source/blender/python/generic/mathutils_Vector.c (+13, -25) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021