[plt-scheme] Question about drawing to a dc<%> and intersection of shapes
On Sun, Jan 25, 2009 at 11:26 PM, Grant Rettke <grettke at acm.org> wrote:
> Is there an existing function to detect intersection of shapes?
No, I don't believe you can do that in a simple way with the current
toolkit (Matthew is working on a rewrite for the coming months, and
then the answer will be "if it is a part of cairo: yes".) You can
create a region% object that is the intersection, then draw with that
region and then see if any pixels get plotted. Not a very good
solution, but depending on your context, it might work.
Robby