直接上连接:https://blog.youkuaiyun.com/cai18381306175/article/details/79285490 bool res = Abs(x0-x1)<W&&Abs(y0-y1)<H