mathutils.RotationMatrix

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

@ -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

@ -168,7 +168,7 @@ static char M_Mathutils_RotationMatrix_doc[] =
"\n"
" Create a matrix representing a rotation.\n"
"\n"
" :arg angle: The angle of rotation desired.\n"
" :arg angle: The angle of rotation desired, in radians.\n"
" :type angle: float\n"
" :arg size: The size of the rotation matrix to construct [2, 4].\n"
" :type size: int\n"