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

Re: [pygame] 2D Vector Class



Ulf Ekström wrote:

> That [complex number trick] seems very smart, and I imagine it is very fast...

Yes, and you get fast rotations with just a multiply.

Only for 2D, though... unless we can persuade Guido to put quaternions in the core... :-)

--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing@xxxxxxxxxxxxxxxx	   +--------------------------------------+