lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 2D vector code


From: Carl D. Sorensen
Subject: RE: 2D vector code
Date: Fri, 14 Apr 2006 08:57:57 -0600

David Feuer writes

>On 4/13/06, Jan Nieuwenhuizen <address@hidden> wrote:
>> David Feuer writes:
>
>> In C++ we have Offset, which has a number of complex_* functions.  We

>> also have complex-to-offset and use offset pairs in SCM, but I do not

>> know if we have any such functions in SCM.
>
> I don't either.
>
>> Does scm/guile not have such funtions for pairs/complex vectors?
>
> It probably does support complex numbers.  Complex numbers, however,
are conceptually quite > different from 2D vectors, and I don't feel
comfortable conflating them.  It's up to you
> and Han, of course.
>

Actually, complex numbers are nothing more than 2-D vectors, but in the
real-imaginary plane rather than the x-y plane.  In fact, when we use
complex numbers, we draw them in a plane indistinguishable from x-y
(real is x, imaginary is y).  So I think that if guile has built-in
complex numbers, we certainly ought to use them.

Carl Sorensen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]