Modified xy2angle and angle2xy according to LaueTool.