Announcing Vector
By chard on Friday, January 23 2009, 11:40 - Projects - Permalink
We've just released one of our very useful tool libraries from last PyWeek, its a simple two dimensional vector geometry library. Head over to the project page and check it out. It sports straightforward concepts such as adding vectors together and rotating them as well as more complex ones such as cross products and projections.
Vector was inspired by the Vec2d class in pymunk, with which I had significant issues. We've taken that and made it a few dozen times faster and also made them immutable. The results are objects that feel far more like vectors should feel. The initial idea was something I half wrote before PyWeek 7 but it was during the challenge that I rewrote it from scratch and we all improved on it from there, adding features that proved useful throughout the course of real development.
Vector is far from done, we'll be adding new classes to its API to support weirder and wilder vector constructs, so watch this space.