mrdoob/three.js — pull request #2829 by bhouston (2012-12-21 16:46:23+00:00)
Title: Vector2/3/4/Quat improvements: Inlined length/lengthSq(), optimized setLength(), component accessors with benchmark support.

Based on discussions with @mrdoob, @alteredq, @gero3 here:

https://github.com/bhouston/three.js/commit/2613df20886058811b7b4d025adcd59031cab15d#commitcomment-2345327

And with @mrdoob here:

https://github.com/bhouston/three.js/commit/6c765dcdb2c790ddcc5d613e96be8a0e66eca1f8#commitcomment-2345549