Rotation with quaternions