Transformation for 5-axis machine with rotary table