crashtheuniverse/MathJS — pull request #1 by jonnyreeves (2012-06-10 13:16:33+00:00)
Title: Math objects now use prototypal definition.

All math objects (Vector3, Vector4, etc) were redefining all their method functions in their constructor, this will result in Javascript VM creating fresh instances of them each time, ie:

```js
var a = new Vector3();
var b = new Vector3();

a.getSquaredLength === b.getSquaredLength // false.
```
By defining all member functions on the prototype object we avoid this problem and improve performance / allocation speed.