Re: Vector classes

2007-04-22 Thread Gabriel Genellina
En Sun, 22 Apr 2007 09:33:53 -0300, Mizipzor <[EMAIL PROTECTED]> escribió: > During my coding Ive found two vector classes on the internet. Ive > modified them both a little but the do both have advantages and > disadvantages. > > vector1: http://rafb.net/p/4FVdh699.html > vector2: http://rafb.net

Re: Vector classes

2007-04-22 Thread Erik Max Francis
Mizipzor wrote: > During my coding Ive found two vector classes on the internet. Ive > modified them both a little but the do both have advantages and > disadvantages. > > vector1: http://rafb.net/p/4FVdh699.html > vector2: http://rafb.net/p/0KShGu30.html > > With 1, I can typ vec.x and vec.y, v

Re: Vector classes

2007-04-22 Thread Will McGugan
Mizipzor wrote: > During my coding Ive found two vector classes on the internet. Ive > modified them both a little but the do both have advantages and > disadvantages. > I'm working on a vector class at the moment, in my 'gameobjects' library. It's not really ready for public consumption, but fee

Re: Vector classes

2007-04-22 Thread Mark Dickinson
On Apr 22, 8:33 am, Mizipzor <[EMAIL PROTECTED]> wrote: > With 1, I can typ vec.x and vec.y, very nice. With 2, I need to do > vec.vals[0] and vec.vals[1], which makes my eyes bleed. If you add a __getitem__ method to the second vector class: def __getitem__(self, i): retu