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

Re: [pygame] Passing pionts through a matrix.



campbell barton wrote:
Hi, I am thinking about making a program where you can pass a list of points (x,y) through a rotation/scale/distortion matrix.
This could be done through python but I was wondering if numeric would be better?

It would be a polyline - Not a image.
- Cam
There are a few bits of code floating around that do this already. Here's one I wrote that is an OpenGL workalike:

http://cvs.sourceforge.net/viewcvs.py/visionegg/visionegg/src/ThreeDeeMath.py

Also, check out the Geometry module at:

http://starship.python.net/~hinsen/ScientificPython/

There must be more, but I can't find them right now.

Cheers!
Andrew

Attachment: pgp00000.pgp
Description: PGP signature