mrdoob/three.js — pull request #2338 by gero3 (2012-08-18 13:37:52+00:00)
Title: more updates to Ray.js

what does it do??

* It adds a closure around the complete Ray class.
* It adds all methods to the prototype instead of assigning them during object creation (This will make the constructor faster.)
* It only generates the internal variables on creation of the class instead of creating them during object creation (This will make the constructor faster.).
* It changes the order in which the files are loaded for minification and concatination.(This is nessecary to make point 3 able to work). It now depends on the fact that Matrix4 is loaded before Ray.

And all this without making the class slower instead of that it gets even faster.
http://jsperf.com/three-js-raysystem/3