Added 3D Euclidean transform using quaternions