Two Rectangles intersection

后端 未结 7 2104
北海茫月
北海茫月 2020-11-27 16:39

I have two rectangles characterized by 4 values each :

Left position X, top position Y, width W and height H:

7条回答
  •  余生分开走
    2020-11-27 17:06

    if (X1+W1

    If you have four coordinates – ((X,Y),(A,B)) and ((X1,Y1),(A1,B1)) – rather than two plus width and height, it would look like this:

    if (A

提交回复
热议问题