2 Comments Already

commenter
OJ Said,
July 30th, 2008 @5:22 pm  

So how should you handle the case where you have group 1 and group 2, and the next rectange you check against intersects rectangles in both of those groups?

Should you end up with a single group which contains group 1, group 2 and next rectangle?

commenter
Aaron Said,
July 30th, 2008 @8:13 pm  

Thanks for the clarifying question.
You should end up with one group if you had 2 groups formed and the next rectangle overlaps both.

Related Post

Please Leave Your Comments Below

Please Note: All comments are moderated, so it may take some time before your comment appears.