Python linear algebra module -- requesting comments on interface

C

C. Barnes

Szabolcs said:
nice interface, but with 3d apps i prefer cgkit's approach, which has
vec3, vec4, mat3, mat4 and quat types with lots of useful functions for
3d graphics (like mat4.looakAt(pos, target, up) or mat3.toEulerXYZ())

there are other libs with similar types and functions:
cgkit (http://cgkit.sourceforge.net/)

Thanks for the link! I had planned on changing around
the constructors: using Matrix.zero(),
Matrix.identity(), and Matrix.random() static methods
(instead of module functions), and adding
Matrix.rotate(), Matrix.translate(), Matrix.scale()
for homogenous 4-matrices and with an optional arg
that would make a 3-matrix in special cases. Then I
thought I'd add affine_transform() and
homogeneous_transform() module methods, which could
transform several vectors at once if they are stored
in a matrix.

But I looked over cgkit's interface, and it is EXACTLY
what I wanted. I guess my scientific programming
background made me think up too general of an
interface. So I've cancelled this linear algebra
library.

If anyone needs the matrix decompositions, and you
can't find them elsewhere, you can always make your
own library. I was planning on using the public
domain code from:

http://math.nist.gov/javanumerics/jama/

ftp://math.nist.gov/pub/Jampack/Jampack/AboutJampack.html

- Connelly Barnes




__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top