[squeak-dev] The Trunk: Graphics-mt.404.mcz

marcel.taeumel Marcel.Taeumel at hpi.de
Mon Dec 10 12:36:01 UTC 2018


We could add Point >> #origin: *and* Point >> #center:, which could both
treat the receiver as extent. That interface would complement Point >>
#corner: and Point >> #extent:.

Best,
Marcel


David T. Lewis wrote
> On Fri, Dec 07, 2018 at 04:17:49AM -0600, marcel.taeumel wrote:
>> We could tread the receiver as extent in this case and see how it works
>> out?
>> 
>> (50 at 50 center: 5 at 5) = (Rectangle center: 5 at 5 extent: 50 at 50).
> 
> That definitely reads more clearly, but in Point>>corner: and
> Point>>center:
> the receiver is used to establish the position of the new rectangle, and
> the argument establishes the size. It may be best to keep that convention.
> 
> Dave





--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html


More information about the Squeak-dev mailing list