add coordinate transformation EQR to RECT and RECT to EQR