Re: [PD] small set of vector transforming abstractions

2007-03-01 Thread IOhannes m zmoelnig
Roman Haefeli wrote:
 hi all
 
 during my trials with gem i made a little set of abstractions, that
 hopefully could be usefull when dealing with vectors. at least they have
 been for me.
 
 the set contains:
 
 [v_+]   : adds two vectors
 [v_-]   : subtracts a vector from another
 [v_scale]   : scales a vector

funnily enough theses have been part of Gem for a long time.
they have been made abstractions and moved to markEx (along with other
objects that are not directly related to Gem)

 [v_mag] : outputs the magnitude of a vector
 [v_normalize]   : normalizes a vector (so that its magnitude becomes 1)
 [v_x]   : computes the cross product of two vectors
 [v_rotate]  : rotates a vector around another
 
 let me know if you miss something or if you find it not useable at all.

why don't you just make them part of the frank's list-abstractions?

mf.asdr
IOhannes

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] small set of vector transforming abstractions

2007-03-01 Thread Frank Barknecht
Hallo,
IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:

 
 why don't you just make them part of the frank's list-abstractions?

Because they already are? ;) 

But the versions of these in [list]-abs also handle arbitrary length
lists and lists including symbols (which get ignored). If you already
know, that you always have 3-element float lists you can optimize
stuff a bit.

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] small set of vector transforming abstractions

2007-03-01 Thread Roman Haefeli
On Thu, 2007-03-01 at 10:53 +0100, Frank Barknecht wrote:
 Hallo,
 IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:
 
  
  why don't you just make them part of the frank's list-abstractions?
 
 Because they already are? ;) 
 
 But the versions of these in [list]-abs also handle arbitrary length
 lists and lists including symbols (which get ignored). If you already
 know, that you always have 3-element float lists you can optimize
 stuff a bit.

hey frank

after a closer look to list-abs again, it turned out that almost all of
the vector-abs are already implemented in list-abs and therefore could
be considered obsolet. the only really new is [v_rotate] (it's _not_ the
same as list-rot) and possibly [v_move], which is somehow related to
[triple-scale]. however, i started with [v_rotate] which i was really
missing and then one came after the other. 
i didn't meant to invent the wheel again.

roman 




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] small set of vector transforming abstractions

2007-03-01 Thread Roman Haefeli
On Thu, 2007-03-01 at 10:10 +0100, IOhannes m zmoelnig wrote:
 Roman Haefeli wrote:
  hi all
  
  during my trials with gem i made a little set of abstractions, that
  hopefully could be usefull when dealing with vectors. at least they have
  been for me.
  
  the set contains:
  
  [v_+]   : adds two vectors
  [v_-]   : subtracts a vector from another
  [v_scale]   : scales a vector
 
 funnily enough theses have been part of Gem for a long time.
 they have been made abstractions and moved to markEx (along with other
 objects that are not directly related to Gem)
 
  [v_mag] : outputs the magnitude of a vector
  [v_normalize]   : normalizes a vector (so that its magnitude becomes 1)
  [v_x]   : computes the cross product of two vectors
  [v_rotate]  : rotates a vector around another
  
  let me know if you miss something or if you find it not useable at all.
 
 why don't you just make them part of the frank's list-abstractions?

i don't think that these should get part of list-abs, though they share
some functionality. the list-abs are so cool, because they work with any
list with any length. the aim of the v_abs is really only dealing with
vectors (list of 3 floatatoms) and they are a bit faster because of
that. when passing 1000 vectors each gem render cycle, this could make a
difference, i think.

roman 



___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] small set of vector transforming abstractions

2007-03-01 Thread Frank Barknecht
Hallo,
Roman Haefeli hat gesagt: // Roman Haefeli wrote:

 after a closer look to list-abs again, it turned out that almost all of
 the vector-abs are already implemented in list-abs and therefore could
 be considered obsolet. the only really new is [v_rotate] (it's _not_ the
 same as list-rot) and possibly [v_move], which is somehow related to
 [triple-scale]. however, i started with [v_rotate] which i was really
 missing and then one came after the other. 
 i didn't meant to invent the wheel again.

Not at all: I think, having a set of specific 3-element vector
operations available as abstractions is very useful. 

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] small set of vector transforming abstractions

2007-02-28 Thread Roman Haefeli
hi all

during my trials with gem i made a little set of abstractions, that
hopefully could be usefull when dealing with vectors. at least they have
been for me.

the set contains:

[v_+]   : adds two vectors
[v_-]   : subtracts a vector from another
[v_scale]   : scales a vector
[v_mag] : outputs the magnitude of a vector
[v_normalize]   : normalizes a vector (so that its magnitude becomes 1)
[v_x]   : computes the cross product of two vectors
[v_rotate]  : rotates a vector around another

let me know if you miss something or if you find it not useable at all.

it can be downloaded from here:
http://romanhaefeli.net/pd/v_abstractions.tar.gz

roman






___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] small set of vector transforming abstractions

2007-02-28 Thread Kyle Klipowicz
How convenient to be having linear algebra AND complex math in the
same week! (Now for how they are related...)

More like this, please!!!

~Kyle

On 2/28/07, Roman Haefeli [EMAIL PROTECTED] wrote:
 hi all

 during my trials with gem i made a little set of abstractions, that
 hopefully could be usefull when dealing with vectors. at least they have
 been for me.

 the set contains:

 [v_+]   : adds two vectors
 [v_-]   : subtracts a vector from another
 [v_scale]   : scales a vector
 [v_mag] : outputs the magnitude of a vector
 [v_normalize]   : normalizes a vector (so that its magnitude becomes 1)
 [v_x]   : computes the cross product of two vectors
 [v_rotate]  : rotates a vector around another

 let me know if you miss something or if you find it not useable at all.

 it can be downloaded from here:
 http://romanhaefeli.net/pd/v_abstractions.tar.gz

 roman






 ___
 Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
 http://mail.yahoo.de



 ___
 PD-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list




-- 

http://theradioproject.com
http://perhapsidid.blogspot.com

(()()()(()))()()())(
(())(())()(((
))(__
_())(()))___
(((000)))oOO

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list