forked from bartvdbraak/blender
mathutils.RotationMatrix
Angles are in radians. Doc and example should reflect reality
This commit is contained in:
parent
8a6ea2584d
commit
5ed7699e85
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user