skshapes.morphing.rigid_motion.quaternion_to_matrix
- skshapes.morphing.rigid_motion.quaternion_to_matrix(quaternions)
Convert rotations given as quaternions to rotation matrices.
- Parameters:
quaternions (
Tensor
) – Quaternions with real part first, as tensor of shape (…, 4).- Return type:
Tensor
- Returns:
Rotation matrices as tensor of shape (…, 3, 3).