[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame 2D vector



Well, when I type "-1**2" into Python, it returns -1. If I run "1**2 + -1**2" it returns 0. So, is there a bug in Python then? Running 2.6.6 on Ubuntu 10.10.
 
Removing the if statement from get_angle fixed the angle problem for me, because of this.
 
On Sat, 23 Jul 2011 13:56 +0200, "DR0ID" <dr0id@xxxxxxxxxx> wrote:

Your mistake basically was that you assumed that  -1 ** 2 == -1 which is not.