[squeak-dev] Re: Complex isNumber
nicolas cellier
ncellier at ifrance.com
Tue Mar 11 22:37:19 UTC 2008
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).
More information about the Squeak-dev
mailing list
|