[plt-scheme] Question about drawing to a dc<%> and intersection of shapes

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Jan 26 07:33:50 EST 2009

On Mon, Jan 26, 2009 at 6:32 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Mon, 26 Jan 2009 06:25:27 -0600, Robby Findler wrote:
>> 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?
>>
>> [...] You can
>> create a region% object that is the intersection, then draw with that
>> region and then see if any pixels get plotted.
>
> You don't have to draw. The `region%' class provides an `is-empty?'
> method, so you can directly detect whether there's any overlap after
> intersecting two regions.

Oh! Sorry. That's much better!

Robby


Posted on the users mailing list.