mrdoob/three.js — pull request #2781 by bhouston (2012-12-10 17:02:16+00:00)
Title: Added transform() to Box3, Sphere and Plane. Made Matrix4 interface a bit more consistent.

Fixes:

#2779 - Add transform( matrix as Matrix4 ) to Sphere, Box3 and Plane with unit tests
#2780 - Inconsistent function signatures: Matrix4.makeTranslation( x, y, z ) versus Matrix4.translate( v ), same with scale (which arose because of the discussion here: #1843)

Removed Box3.scale, Box2.scale because they were erroneous, one should just use Box3.transform instead. Removed Sphere.scale as it just wasn't useful (as compared to just scaling Sphere.radius.)

I also expanded unit test coverage on Plane and Sphere and found a few bugs in my additions to the geometry library that this PR fixed.

All unit tests pass and all relevant examples run.