[squeak-dev] Re: Complex isNumber
lecteur at zogotounga.net
Wed Mar 12 09:01:23 UTC 2008
nicolas cellier a écrit :
> Stéphane Rollandin a écrit :
>> + 1
>> ... and my own proposal would be to merge Complex and Point.
>> very simple, since a Complex IS a Point in the Argand plane.
>> this would help a lot doing geometry graphically. I'm doing a lot of
>> useless and costly conversions from Point to Complex (and the other
>> way round) in some of my math code.
> It almost works except multiplication and division...
> (0 @ 1) * (0 @ 1) is not (-1 at 0).
right, this would have to refactored. I wonder how many
"multiplications" of Points we currently have in the image...
More information about the Squeak-dev