def quaternion_rotation_matrix(quaternion):
 return quaternion_matrix(quaternion)[:3, :3]

def quaternion_rotation_matrix ( quaternion ) : return quaternion_matrix ( quaternion ) [ : 3 , : 3 ]
return rotation matrix from quaternion .