[squeak-dev] Why does BouncingAtomsMorph fudge bounds
Sean P. DeNigris
sean at clipperadams.com
Sun Jan 29 05:10:17 UTC 2012
AtomMorphs take their topLeft as their position. This causes them to bounce
past the bottom and right edges of their container by "atom width" and "atom
Then, BouncingAtomsMorph comes to the rescue in #step with:
r _ bounds origin corner: (bounds corner - (8 at 8)).
Why was this done this way? Was it to make the AtomMorph's method look like
more purely like a mathematical formula for a particle? If so, this makes
sense, but a comment documenting the intent would be really nice.
View this message in context: http://forum.world.st/Why-does-BouncingAtomsMorph-fudge-bounds-tp4337653p4337653.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev