2
from math import radians
4
vec = mathutils.Vector((1.0, 2.0, 3.0))
6
mat_rot = mathutils.Matrix.Rotation(radians(90.0), 4, 'X')
7
mat_trans = mathutils.Matrix.Translation(vec)
9
mat = mat_trans * mat_rot
13
quat1 = mat.to_quaternion()
14
quat2 = mat3.to_quaternion()
16
quat_diff = quat1.rotation_difference(quat2)
18
print(quat_diff.angle)