Backport quaternion to euler transform