Vector, matrix, normalize, rotate. What package?

r1chardj0n3s at gmail.com r1chardj0n3s at gmail.com
Thu Mar 1 18:57:14 CET 2007


On Feb 27, 4:49 pm, "Mattias Brändström" <thebra... at brasse.org> wrote:
> Hello!
>
> I'm trying to find what package I should use if I want to:
>
> 1. Create 3d vectors.
> 2. Normalize those vectors.
> 3. Create a 3x3 rotation matrix from a unit 3-d vector and an angle in
> radians.
> 4. Perform matrix multiplication.
>
> It seems to me that perhaps numpy should be able to help me with this.
> However, I can only figure out how to do 1 and 4 using numpy. Meybe
> someone knows a way to use numpy for 2 and 3? If not, what Python
> package helps me with geometry related tasks such as 2 and 3?

Try Alex Holkner's euclid.py module:

   http://cheeseshop.python.org/pypi/euclid/0.01


    Richard




More information about the Python-list mailing list