Hi,
I have two rects, sx1,sy1,sx2,sy2 and dx1,dy1,dx2,dy2.
I would like to collide one rect with the other rect, but return a third rect: x1,y1,x2,y2 with the area the two of them overlap as.
How is this done? I've just hurt my brain over what seems to be a really simple problem!
I have two rects, sx1,sy1,sx2,sy2 and dx1,dy1,dx2,dy2.
I would like to collide one rect with the other rect, but return a third rect: x1,y1,x2,y2 with the area the two of them overlap as.
How is this done? I've just hurt my brain over what seems to be a really simple problem!