mathutils.RotationMatrix
Angles are in radians. Doc and example should reflect reality
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user