Empty value for x1, x2, y1 and y2 should be zero if NaN.