[squeak-dev] intersect: when intsersects: is false

Jim Rosenberg jr at amanue.com
Sat Jun 19 22:58:46 UTC 2010


[Using Squeak 3.8; apologies if more current versions "fix" this ... ]

This expression yields false:

((0 at 0) corner: (50 at 50)) intersects: ((100 at 100) corner: (150 at 150))

So, what should this yield?:

((0 at 0) corner: (50 at 50)) intersect: ((100 at 100) corner: (150 at 150))

I was expecting perhaps nil. Instead I got (100 at 100) corner: (50 at 50). This 
is "a surprise". It's certainly not right mathematically ...

---
 Jim Rosenberg                      http://www.well.com/user/jer/
     Internet: jr at amanue.com




More information about the Squeak-dev mailing list