what do people use for 2D coordinates?
Matthias Baas
baas at ira.uka.de
Sun Aug 3 04:55:14 EDT 2003
On 1 Aug 2003 16:37:38 -0700, aayycc88 at hotmail.com (Andy C) wrote:
>You could use tuples or complex numbers (seems like a bit of a hack).
>I saw somewhere it said that tuples are useful for coordinates. But I
>haven't found a nice way to add coordinates, since + does
>concatenation on tuples.
I have written a package that includes 3D vectors. You can also use
those for 2D stuff (just ignore the 3rd component).
The package can be found here:
http://cgkit.sourceforge.net
And to see if it suits your needs you can have a look at the
documentation here:
http://cgkit.sourceforge.net/doc/index.html
- Matthias -
More information about the Python-list
mailing list