Being a bear of little brain, I would try placing each rect into a group centred on a larger rect, where the margin is d/2, then test using intersect.
Now, where did I put that hunny? Best wishes David Glasgow _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode