m3_euclidean_z function

3D Euclidean, rotation about z