lilypond-devel
[Top][All Lists]
Advanced

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

Re: 2D vector code


From: Han-Wen Nienhuys
Subject: Re: 2D vector code
Date: Thu, 20 Apr 2006 17:06:18 -0300



2006/4/14, David Feuer <address@hidden>:
> 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.

I think that complex numbers are perfect for 2D vectors. I can't imagine a situation were we would need an SCM value that can both be a complex number and a 2d offset, so I think it shouldn't be a problem, but if you're uncomfortable with identifying them, I recommend you add  a bunch of aliases, eg:

  (define vector-2d-add +)
 


reply via email to

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