[squeakdev] Re: Complex isNumber
Stéphane Rollandin
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.
>>
>> http://en.wikipedia.org/wiki/Complex_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.
>>
>> Stef
>>
>
> 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...
Stef
More information about the Squeakdev
mailing list
