[comp.graphics] overlaping rectangle test?

shirley@m.cs.uiuc.edu (10/06/89)

Anyone have a nice method to determine if two rectangles in 2D overlap?
I actually want this for 3-D boxes, but I figure the 2D case will
generalize.

I currently determine the rectangle of intersection.  If it exists then
there is overlap.  This doesn't seem elegant, and is pretty slow.

Thanks,

pete shirley
shirley@m.cs.uiuc.edu