[ENH] BetterTouches

Joshua Channing Gargus schwa at cc.gatech.edu
Tue Feb 27 16:22:39 UTC 2001


Fixes a problem with Player>>touchesA:, and also uses a better contact
algorithm than bounding box intersection.  The new algorithm uses
BitBlt to determine whether any pixels overlap within the intersection
of two morph's bounding boxes.  It also works with rotated morphs.

Each call to Morph>>touchesMorph: takes approx. 10ms on my 300Mhz G3
to find whether two ellipses (extent: 300 at 40) touch (assuming that
their bounding boxes intersect; otherwise it will be much faster)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BetterTouches.2.cs.gz
Type: application/x-gunzip
Size: 1207 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010227/034fcb54/BetterTouches.2.cs.bin


More information about the Squeak-dev mailing list