t=(xx-xy-d0)/ (sx2/nx+sy2/ny)