mrdoob/three.js — pull request #2479 by apendua (2012-10-03 17:07:31+00:00)
Title: Bounding Sphere refinements

Just thought this may be useful :)

1. In addition to boundRadius, we also compute the bounding sphere center (based on geometry), to better approximate the shape of the object.

2. Furthermore, the objects's updateMatrixWorld routine also keeps track of the overall scale factor (this is boundRadiusScaleWorld), so there's no longer need to extract scale from object's matrixWorld.

3. Also, added setScalar method to Vector3.