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
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
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 r
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
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, very nice. With 2, I need to do