mrdoob/three.js — pull request #2821 by bhouston (2012-12-19 16:17:33+00:00)
Title: Adopt THREE.Math.degToRad/radToDeg across the code base & examples.

This is a low priority change, just making some code more self-explanatory, simpler to read and spreading best practices throughout the example code.

(1) First off I shortened THREE.Math.degreesToRadians/radiansToDegrees to degToRad/radToDeg as I figured the short name would be preferred by ThreeJS maintainers. I personally prefer the long version but I am okay with the short version.

(2) I have changed patterns in the code and the examples such as this:
```
phi = ( 90 - lat ) * Math.PI / 180;
theta = lon * Math.PI / 180;
```
to this:
```
phi = THREE.Math.degToRad( 90 - lat );
theta = THREE.Math.degToRad( lon );
```
(2) I've tested each example that I have modified. Also, all unit tests pass.

(3) There were some cases such as this:
```
mesh.rotation.y = Math.random() * 360 * ( Math.PI / 180 );
```
that I instead changed to the following as it was both simpler/faster to stay in radians:
```
mesh.rotation.x = Math.random() * 2 * Math.PI;
```