Two Rectangles intersection

后端 未结 7 2099
北海茫月
北海茫月 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:05

    I just tried with a c program and wrote below.

    #include
    
    int check(int i,int j,int i1,int j1, int a, int b,int a1,int b1){
        return (\
        (((i>a) && (ib)&&(ji) && (aj)&&(ba) && (i1b)&&(j1i) && (a1j)&&(b1

提交回复
热议问题