NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Answer the negative (Score:1)
A rectangle can be defined by the coordinates of its top-left and bottom-right points:
So let's say
A = (x1,y1,x2,y2) and B = (u1,v1,u2,v2). Then A does not overlap B if one of these four tests pass: So A overlaps B if none of the above hold: or equivalently (!(a or b) <=> !a and !b) That's too simple to be a moduleReply to This