cal_rxy function

Calculate rxy based on ryxGz, rxz, and ryz