mathutils rotate functions for Euler/Quaternion/Matrix/Vector types.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 5 Feb 2011 09:57:02 +0000 (09:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 5 Feb 2011 09:57:02 +0000 (09:57 +0000)
commit998198a041aebad75c31db19e6cd3d64b61f2b3c
treea152fd5b8dc40daf4aabaada15696fbf3e26f4ac
parent8b52087d837ac035e2645c09ad780c45fccb9d89
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.
doc/python_api/examples/mathutils.Vector.py
doc/python_api/examples/mathutils.py
source/blender/python/generic/mathutils.c
source/blender/python/generic/mathutils.h
source/blender/python/generic/mathutils_euler.c
source/blender/python/generic/mathutils_matrix.c
source/blender/python/generic/mathutils_matrix.h
source/blender/python/generic/mathutils_quat.c
source/blender/python/generic/mathutils_vector.c