[squeak-dev] The Trunk: Graphics-mt.404.mcz
eliot.miranda at gmail.com
Sun Dec 2 21:51:43 UTC 2018
On Sun, Dec 2, 2018 at 2:50 AM <commits at source.squeak.org> wrote:
> Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
> ==================== Summary ====================
> Name: Graphics-mt.404
> Author: mt
> Time: 2 December 2018, 11:49:55.694325 am
> UUID: c61bf172-8ce2-2b42-9ded-3b10fa30cf8d
> Ancestors: Graphics-pre.403
> Adds an infix version for Rectangle >> #center:extent: for convenience.
> The name #inflate: is subject to discussion. :-)
I don't like inflate: or any of the other suggestions. Why not have it the
other way round so that the extent is the receiver, then one could call it
or some such. inflate: makes me thing of division by zero because points
have no extent. If you insist on the inflate: way round then intension
revealing would be
> =============== Diff against Graphics-pre.403 ===============
> Item was added:
> + ----- Method: Point>>inflate: (in category 'converting') -----
> + inflate: aPoint
> + "Answer a Rectangle whose center is the receiver and whose extent
> + aPoint. This is one of the infix ways of expressing the creation
> of a
> + rectangle."
> + ^Rectangle center: self extent: aPoint!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev