mathutils.RotationMatrix

Angles are in radians. Doc and example should reflect reality
This commit is contained in:
2010-06-23 02:42:39 +00:00
parent 8a6ea2584d
commit 5ed7699e85
2 changed files with 3 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
import mathutils
from math import radians
vec = mathutils.Vector(1.0, 2.0, 3.0)
mat_rot = mathutils.RotationMatrix(90, 4, 'X')
mat_rot = mathutils.RotationMatrix(radians(90), 4, 'X')
mat_trans = mathutils.TranslationMatrix(vec)
mat = mat_trans * mat_rot