Finished transformation code (Euler & quaternion rotation).